[993] | 1 | {% extends "layout.html.twig" %} |
---|
[1056] | 2 | {% import "js_helpers.html.twig" as js %} |
---|
[1075] | 3 | {% block header %} |
---|
| 4 | {{ parent() }} |
---|
[1056] | 5 | {{ js.date_picker }} |
---|
| 6 | {{ js.tool_bar }} |
---|
| 7 | {{ js.modal }} |
---|
| 8 | {{ js.meta_editor }} |
---|
| 9 | <script type="text/javascript" src="{{theme_url}}js/_post.js"></script> |
---|
| 10 | {{ js.confirm_close(['entry-form','comment-form']) }} |
---|
| 11 | {{ js.page_tabs(default_tab) }} |
---|
| 12 | {% endblock %} |
---|
[993] | 13 | |
---|
| 14 | {% block content %} |
---|
| 15 | {{ parent() }} |
---|
| 16 | |
---|
| 17 | <div class="multi-part" title="{{__('Edit entry')}}" id="edit-entry"> |
---|
[1147] | 18 | {% form 'post' %} |
---|
[993] | 19 | <div id="entry-wrapper"> |
---|
| 20 | <div id="entry-content"> |
---|
| 21 | <div class="constrained"> |
---|
| 22 | <p class="col">{{ form_field('post_title',{'class':'maximal'}) }}</p> |
---|
| 23 | <p class="area" id="excerpt-area">{{ form_field('post_excerpt',{'rows':5,'cols':50}) }}</p> |
---|
[1088] | 24 | <p class="area" id="content-area">{{ form_field('post_content',{'rows':current_user.options.edit_size,'cols':5}) }}</p> |
---|
[993] | 25 | <p class="area" id="notes-area">{{ form_field('post_notes',{'rows':5,'cols':50}) }}</p> |
---|
[1319] | 26 | <p>{{ form_field('save')}} |
---|
| 27 | {% if preview_url is defined %} |
---|
| 28 | <a id="post-preview" href="{{ preview_url}}" class="button" accesskey="p">{{__('Preview')}} (p)</a> |
---|
| 29 | {% endif %} |
---|
| 30 | |
---|
| 31 | {{form_field('delete',{'class':'delete'})}}</p> |
---|
| 32 | |
---|
[993] | 33 | </div> |
---|
| 34 | </div> |
---|
| 35 | </div> |
---|
| 36 | <div id="entry-sidebar"> |
---|
[1001] | 37 | <p>{{ form_field('cat_id',{'class':'maximal'})}}</p> |
---|
[993] | 38 | <p>{{ form_field('post_status')}}</p> |
---|
| 39 | <p>{{ form_field('post_dt')}}</p> |
---|
| 40 | <p>{{ form_field('post_format')}}</p> |
---|
| 41 | <p>{{ form_field('post_open_comment')}}</p> |
---|
| 42 | <p>{{ form_field('post_open_tb')}}</p> |
---|
| 43 | <p>{{ form_field('post_selected')}}</p> |
---|
[1319] | 44 | <p>{{ form_field('post_lang',{"class":"maximal"},{'nestedlabel':true})}}</p> |
---|
| 45 | <p>{{ form_field('post_password',{"size":10, "class":"maximal"},{'nestedlabel':true})}}</p> |
---|
| 46 | <div class="lockable"> |
---|
| 47 | <p>{{ form_field('post_url',{"size":10, "class":"maximal"})}} </p> |
---|
| 48 | <p class="form-note warn"> |
---|
| 49 | {{ __('Warning: If you set the URL manually, it may conflict with another entry.') }} |
---|
| 50 | </p> |
---|
| 51 | </div> |
---|
[993] | 52 | </div> |
---|
| 53 | {% endform %} |
---|
| 54 | </div> |
---|
[1319] | 55 | {% if post_id is defined %} |
---|
| 56 | <p><a href="trackbacks.php?id={{ post_id }}" class="multi-part">{{__('Ping blogs')}}</a></p> |
---|
| 57 | <div class="multi-part" id="comments" title="{{__('Comments')}}"> |
---|
| 58 | <!-- to be completed --> |
---|
| 59 | </div> |
---|
| 60 | <div class="multi-part" id="add-comment" title="{{__('Add a comment')}}"> |
---|
| 61 | <h3>{{__('Add a comment')}}</h3> |
---|
| 62 | {% form 'add-comment' %} |
---|
| 63 | <div class="constrained"> |
---|
| 64 | <p>{{ form_field('comment_author',{'size': 30}) }}</p> |
---|
| 65 | <p>{{ form_field('comment_email',{'size': 30})}}</p> |
---|
| 66 | <p>{{ form_field('comment_site',{'size': 30})}}</p> |
---|
| 67 | <p class="area">{{ form_field('comment_content',{'cols': 50,'rows':8})}}</p> |
---|
| 68 | <p>{{ form_field('add') }}</p> |
---|
| 69 | </div> |
---|
| 70 | |
---|
| 71 | {% endform %} |
---|
| 72 | </div> |
---|
| 73 | |
---|
| 74 | {% endif %} |
---|
[993] | 75 | {% endblock %} |
---|
[1001] | 76 | |
---|