Dotclear


Ignore:
Timestamp:
03/08/13 15:37:34 (12 years ago)
Author:
Dsls <dsls@…>
Branch:
twig
Message:

Oops, I did it again (c).

Fist draft of merge from formfilters to dctwig. lists need to be broken up too.

From now all post lists are broken.

Location:
inc/admin/default-templates
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/default-templates/auth.html.twig

    r1089 r1147  
    1818<body id="dotclear-admin" class="auth"> 
    1919 
    20 {% form auth %} 
     20{% form 'auth' %} 
    2121<div id="login-screen"> 
    2222<h1>{{vendor_name}}</h1> 
  • inc/admin/default-templates/form_layout.html.twig

    r1001 r1147  
    1818{% block field_textarea %} 
    1919{% spaceless %} 
    20      {{ block('label') }} 
     20     {{ block('startlabel') }} 
    2121    <textarea {{ block('field_attr') }}>{{ value }}</textarea> 
     22    {{ block('endlabel') }} 
    2223{% endspaceless %} 
    2324{% endblock field_textarea %} 
     
    3839{% spaceless %} 
    3940    {% set type = type|default('text') %} 
    40     {{ block('label') }} 
     41    {{ block('startlabel') }} 
    4142     <input type="{{ type }}" {{ block('field_attr') }} {% if value is not empty %}value="{{ value }}" {% endif %} /> 
     43    {{ block('endlabel') }} 
    4244{% endspaceless %} 
    4345{% endblock field_input %} 
     
    8082{% block field_combo %} 
    8183{% spaceless %} 
    82     {{ block('label') }} 
     84    {{ block('startlabel') }} 
    8385    <select {{ block('field_attr') }}> 
    8486        {{ block('field_options') }} 
    8587    </select> 
     88    {{ block('endlabel') }} 
    8689{% endspaceless %} 
    8790{% endblock field_combo %} 
    88  
     91{# 
    8992{% block label %} 
    9093{% spaceless %} 
     
    9497{% endspaceless %} 
    9598{% endblock label %} 
     99#} 
     100 
     101{% block startlabel %} 
     102{% spaceless %} 
     103    {% if label is not empty %} 
     104        {% if required is not empty %} 
     105            {% set labelclass = labelclass + " required" %} 
     106        {% endif %} 
     107        <label for="{{name}}" {% if labelclass is not empty %}class="{{labelclass}}"{% endif %} {% if required is not empty %}<abbr title="{{__('Required field')}}">*</abbr>{% else %}>{% endif %} {{label}} 
     108        {% if nestedlabel is empty %}</label> {% endif %} 
     109    {% endif %} 
     110{% endspaceless %} 
     111{% endblock startlabel %} 
     112 
     113{% block endlabel %} 
     114{% spaceless %} 
     115    {% if label is not empty %} 
     116        {% if nestedlabel is not empty %}</label>{% endif %} 
     117    {% endif %} 
     118{% endspaceless %} 
     119{% endblock endlabel %} 
     120 
  • inc/admin/default-templates/index.html.twig

    r1099 r1147  
    2828          <div id="quick"> 
    2929               <h3>{{__('Quick entry')}}</h3> 
    30                {% form quickentry %} 
     30               {% form 'quickentry' %} 
    3131                    <fieldset><legend>{{__('New entry')}}</legend> 
    3232                         <p class="col">{{ form_field('post_title',{'class':'maximal'}) }}</p> 
  • inc/admin/default-templates/layout.html.twig

    r1089 r1147  
    1919<body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}"> 
    2020     <div id="header"> 
    21           <ul id="prelude"> 
    22                <li><a href="#content">{{__('To content')}}</a></li> 
    23                <li><a href="#main-menu">{{__('To menu')}}</a></li> 
    24           </ul> 
     21          {% block prelude %} 
     22               <ul id="prelude"> 
     23                    <li><a href="#content">{{__('To content')}}</a></li> 
     24                    <li><a href="#main-menu">{{__('To menu')}}</a></li> 
     25               </ul> 
     26          {% endblock %} 
    2527          <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div> 
    2628          <div id="info-boxes"> 
    2729               <div id="info-box1"> 
    28                  {% form switchblog_menu %} 
     30                 {% form 'switchblog_menu' %} 
    2931                    {% if blog_count > 1 and blog_count < 20 %} 
    30                          <p>{{ form_field('switchblog') }}</p> 
    31                          <noscript><p>{{ form_field('switchblog_submit') }}</p></noscript> 
     32                         {{ form_field('switchblog',{},{'nestedlabel' : true, labelclass:'classic'}) }} 
     33                         <noscript>{{ form_field('switchblog_submit') }}</noscript> 
    3234                    {% else %} 
    33                          <p>{{__('Blog:')}} <strong title="{{current_blog.url}}">{{current_blog.name}}</strong> 
    34                          {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %}</p> 
     35                         {{__('Blog:')}} <strong title="{{current_blog.url}}">{{current_blog.name}}</strong> 
     36                         {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} 
    3537                    {% endif %} 
    36                     <p><a href="{{current_blog.url}}" onclick="window.open(this.href);return false;" title="{{__('Go to site')}} ({{__('new window')}})">{{__('Go to site')}} <img src="{{theme_url}}images/outgoing.png" alt="" /></a></p> 
     38                    <a href="{{current_blog.url}}" onclick="window.open(this.href);return false;" title="{{__('Go to site')}} ({{__('new window')}})">{{__('Go to site')}} <img src="{{theme_url}}images/outgoing.png" alt="" /></a> 
    3739                 {% endform %} 
    3840               </div> 
  • inc/admin/default-templates/post.html.twig

    r1088 r1147  
    1616 
    1717<div class="multi-part" title="{{__('Edit entry')}}" id="edit-entry"> 
    18 {% form post %} 
     18{% form 'post' %} 
    1919<div id="entry-wrapper"> 
    2020     <div id="entry-content"> 
  • inc/admin/default-templates/style/default.css

    r1085 r1147  
    13561356     background-color: #2373A8; 
    13571357} 
    1358  
     1358form#filters {font-size: 100%; background: #f0f0f0; padding: 1em; border-radius: .5em; border: 1px solid #ddd;} 
     1359form#filters .margintop {padding-top: 1.33em;} 
     1360form#filters ul, form#filters p {list-style-type:none;margin: 0; padding: 0 0 .5em 0; margin-left: 1em;} 
     1361form#filters .col30 {border-left: 1px solid #999;} 
     1362form#filters .col30 h3 {margin-left: 1em;} 
     1363 
     1364p.line, li.line { position: relative; padding: 3px 0 0 28px; margin: 0 0 1em 0;} 
     1365li.line input[type=submit] {position: absolute; left:0;top:0; padding: 0 .1em; margin: 0;} 
     1366li.line input[type=checkbox], li.line input[type=checkbox] {position: absolute; left: 0; top: .2em; padding: 0 .1em; margin: 0;} 
     1367li.line select { margin-right: 2em;} 
     1368li.line label { display: block; width: 8em; float: left;} 
     1369li.line label img {margin-right: 8px;} 
     1370li.line span.or { 
     1371     text-align: right; 
     1372     margin-left: 5em; 
     1373     font-weight: bold; 
     1374} 
     1375p.line label.or + select {margin-left: 2em;} 
     1376li.line { padding: 0 0 0 20px; height: 1em;} 
     1377li.line label {width: auto;} 
     1378 
     1379#available_filters input[type=submit] {padding: 0 .1em; margin-left: .5em;} 
     1380 
     1381div.pagination span, div.pagination a { 
     1382     margin-right: 1em; 
     1383} 
    13591384/* jQuery Autocomplete plugin */ 
    13601385.ac_results { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map