Changeset 1319:32528cac0405 for inc/admin
- Timestamp:
- 08/09/13 15:19:11 (12 years ago)
- Branch:
- twig
- Location:
- inc/admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/class.dc.admincontext.php
r1316 r1319 429 429 'label' => __('Search:')))) 430 430 ->addField( 431 new dcFieldSubmit( 'ok',__('OK'),array(431 new dcFieldSubmit(array('ok'),__('OK'),array( 432 432 ))) 433 433 ->setup(); -
inc/admin/class.dc.form.php
r1158 r1319 926 926 $attr['value'] = $this->getDefaultValue(); 927 927 } 928 if ($offset==0 ) {928 if ($offset==0 && !empty($this->id)) { 929 929 $attr['id']=$this->id; 930 930 } -
inc/admin/default-templates/forms/form_layout.html.twig
r1316 r1319 57 57 {% block field_attr %} 58 58 {% spaceless %} 59 id="{{id}}"name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if maxlength %} maxlength="{{ maxlength }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}59 {% if id %}id="{{id}}"{% endif %} name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if maxlength %} maxlength="{{ maxlength }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %} 60 60 {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 61 61 {% endspaceless %} -
inc/admin/default-templates/layout.html.twig
r1316 r1319 10 10 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 11 11 <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> 12 <link rel="icon" type="image/png" href="images/favicon.png" /> 12 13 {% if rtl is not empty %} 13 14 <link rel="stylesheet" href="{{theme_url}}style/default-rtl.css" type="text/css" media="screen" /> -
inc/admin/default-templates/post.html.twig
r1147 r1319 24 24 <p class="area" id="content-area">{{ form_field('post_content',{'rows':current_user.options.edit_size,'cols':5}) }}</p> 25 25 <p class="area" id="notes-area">{{ form_field('post_notes',{'rows':5,'cols':50}) }}</p> 26 <p>{{ form_field('save')}} {{form_field('delete',{'class':'delete'})}}</p> 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 27 33 </div> 28 34 </div> … … 36 42 <p>{{ form_field('post_open_tb')}}</p> 37 43 <p>{{ form_field('post_selected')}}</p> 38 <p>{{ form_field('post_lang')}}</p> 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> 39 52 </div> 40 53 {% endform %} 41 54 </div> 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 %} 42 75 {% endblock %} 43 76
Note: See TracChangeset
for help on using the changeset viewer.