Changeset 1147:2e5cb79e4782 for inc/admin/default-templates
- Timestamp:
- 03/08/13 15:37:34 (12 years ago)
- Branch:
- twig
- Location:
- inc/admin/default-templates
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/default-templates/auth.html.twig
r1089 r1147 18 18 <body id="dotclear-admin" class="auth"> 19 19 20 {% form auth%}20 {% form 'auth' %} 21 21 <div id="login-screen"> 22 22 <h1>{{vendor_name}}</h1> -
inc/admin/default-templates/form_layout.html.twig
r1001 r1147 18 18 {% block field_textarea %} 19 19 {% spaceless %} 20 {{ block(' label') }}20 {{ block('startlabel') }} 21 21 <textarea {{ block('field_attr') }}>{{ value }}</textarea> 22 {{ block('endlabel') }} 22 23 {% endspaceless %} 23 24 {% endblock field_textarea %} … … 38 39 {% spaceless %} 39 40 {% set type = type|default('text') %} 40 {{ block(' label') }}41 {{ block('startlabel') }} 41 42 <input type="{{ type }}" {{ block('field_attr') }} {% if value is not empty %}value="{{ value }}" {% endif %} /> 43 {{ block('endlabel') }} 42 44 {% endspaceless %} 43 45 {% endblock field_input %} … … 80 82 {% block field_combo %} 81 83 {% spaceless %} 82 {{ block(' label') }}84 {{ block('startlabel') }} 83 85 <select {{ block('field_attr') }}> 84 86 {{ block('field_options') }} 85 87 </select> 88 {{ block('endlabel') }} 86 89 {% endspaceless %} 87 90 {% endblock field_combo %} 88 91 {# 89 92 {% block label %} 90 93 {% spaceless %} … … 94 97 {% endspaceless %} 95 98 {% 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 28 28 <div id="quick"> 29 29 <h3>{{__('Quick entry')}}</h3> 30 {% form quickentry%}30 {% form 'quickentry' %} 31 31 <fieldset><legend>{{__('New entry')}}</legend> 32 32 <p class="col">{{ form_field('post_title',{'class':'maximal'}) }}</p> -
inc/admin/default-templates/layout.html.twig
r1089 r1147 19 19 <body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}"> 20 20 <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 %} 25 27 <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div> 26 28 <div id="info-boxes"> 27 29 <div id="info-box1"> 28 {% form switchblog_menu%}30 {% form 'switchblog_menu' %} 29 31 {% 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> 32 34 {% 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 %} 35 37 {% 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> 37 39 {% endform %} 38 40 </div> -
inc/admin/default-templates/post.html.twig
r1088 r1147 16 16 17 17 <div class="multi-part" title="{{__('Edit entry')}}" id="edit-entry"> 18 {% form post%}18 {% form 'post' %} 19 19 <div id="entry-wrapper"> 20 20 <div id="entry-content"> -
inc/admin/default-templates/style/default.css
r1085 r1147 1356 1356 background-color: #2373A8; 1357 1357 } 1358 1358 form#filters {font-size: 100%; background: #f0f0f0; padding: 1em; border-radius: .5em; border: 1px solid #ddd;} 1359 form#filters .margintop {padding-top: 1.33em;} 1360 form#filters ul, form#filters p {list-style-type:none;margin: 0; padding: 0 0 .5em 0; margin-left: 1em;} 1361 form#filters .col30 {border-left: 1px solid #999;} 1362 form#filters .col30 h3 {margin-left: 1em;} 1363 1364 p.line, li.line { position: relative; padding: 3px 0 0 28px; margin: 0 0 1em 0;} 1365 li.line input[type=submit] {position: absolute; left:0;top:0; padding: 0 .1em; margin: 0;} 1366 li.line input[type=checkbox], li.line input[type=checkbox] {position: absolute; left: 0; top: .2em; padding: 0 .1em; margin: 0;} 1367 li.line select { margin-right: 2em;} 1368 li.line label { display: block; width: 8em; float: left;} 1369 li.line label img {margin-right: 8px;} 1370 li.line span.or { 1371 text-align: right; 1372 margin-left: 5em; 1373 font-weight: bold; 1374 } 1375 p.line label.or + select {margin-left: 2em;} 1376 li.line { padding: 0 0 0 20px; height: 1em;} 1377 li.line label {width: auto;} 1378 1379 #available_filters input[type=submit] {padding: 0 .1em; margin-left: .5em;} 1380 1381 div.pagination span, div.pagination a { 1382 margin-right: 1em; 1383 } 1359 1384 /* jQuery Autocomplete plugin */ 1360 1385 .ac_results {
Note: See TracChangeset
for help on using the changeset viewer.