Added Tabs to edit page
This commit is contained in:
16
views/editpage/tab-main.html.twig
Normal file
16
views/editpage/tab-main.html.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="form-group">
|
||||
<label for="slug">
|
||||
Slug: (<a href="/page/{{ rows.slug }}" target="_new">/page/{{ rows.slug }}</a>)
|
||||
<span class="tooltip">?<span class="tooltiptext">Slug is a human readable but uri friendly name for the page.</span></span>
|
||||
</label>
|
||||
<input type="text" id="slug" name="slug" value="{{ rows.slug }}" required>
|
||||
</div>
|
||||
|
||||
<!-- Ace Editor -->
|
||||
<div class="form-group fullwidth">
|
||||
<label for="body">Body:</label>
|
||||
<div class="editor-container">
|
||||
<textarea id="body" name="body" rows="10" style="display: none;">{{ rows.body|default('')|e('html') }}</textarea>
|
||||
<div id="body-editor" class="ace-editor"></div> {# Ace mounts here #}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user