Dotclear


Ignore:
Timestamp:
08/09/13 15:19:11 (12 years ago)
Author:
Dsls
Branch:
twig
Message:

Continuing with twig -> post.php

Location:
inc/admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/class.dc.admincontext.php

    r1316 r1319  
    429429                    'label' => __('Search:')))) 
    430430               ->addField( 
    431                     new dcFieldSubmit('ok',__('OK'),array( 
     431                    new dcFieldSubmit(array('ok'),__('OK'),array( 
    432432                    ))) 
    433433               ->setup(); 
  • inc/admin/class.dc.form.php

    r1158 r1319  
    926926               $attr['value'] = $this->getDefaultValue(); 
    927927          } 
    928           if ($offset==0) { 
     928          if ($offset==0 && !empty($this->id)) { 
    929929               $attr['id']=$this->id; 
    930930          } 
  • inc/admin/default-templates/forms/form_layout.html.twig

    r1316 r1319  
    5757{% block field_attr %} 
    5858{% 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 %} 
    6060    {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 
    6161{% endspaceless %} 
  • inc/admin/default-templates/layout.html.twig

    r1316 r1319  
    1010     <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    1111     <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" /> 
    1213     {% if rtl is not empty %} 
    1314     <link rel="stylesheet" href="{{theme_url}}style/default-rtl.css" type="text/css" media="screen" /> 
  • inc/admin/default-templates/post.html.twig

    r1147 r1319  
    2424               <p class="area" id="content-area">{{ form_field('post_content',{'rows':current_user.options.edit_size,'cols':5}) }}</p> 
    2525               <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 
    2733          </div> 
    2834     </div> 
     
    3642     <p>{{ form_field('post_open_tb')}}</p> 
    3743     <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> 
    3952</div> 
    4053{% endform %} 
    4154</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 %} 
    4275{% endblock %} 
    4376 
Note: See TracChangeset for help on using the changeset viewer.

Sites map