Dotclear


Ignore:
Timestamp:
08/16/13 15:48:37 (12 years ago)
Author:
Dsls
Branch:
twig
Message:
  • reworked breadcrumb
  • tuned checkboxes (need to see if it works for multiple values)
  • magic methods for dcForm are more intuitive now, getField method added
Location:
inc/admin/default-templates
Files:
2 edited

Legend:

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

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

    r1319 r1414  
    55     {% block header %} 
    66     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    7      <title>{% block title %}{% for part in page_title %}{{ part.title }} - {% endfor %}{% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> 
     7     <title>{% block title %}{{  (page_title|last).title|striptags }} - {% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> 
    88     <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 
    99     <meta name="GOOGLEBOT" content="NOSNIPPET" /> 
     
    5959                    {% endif %} 
    6060                    <h2> 
    61                          {%- if not page_global %}{{current_blog.name}} &rsaquo; {% endif %} 
     61                         {#{%- if not page_global %}{{current_blog.name}} &rsaquo; {% endif %}#} 
    6262                         {%- for part in page_title %} 
    6363                              {%- if loop.last %}<span class="page-title">{% endif %} 
    64                               {%- if part.link is not empty %}<a href="{{ part.link }}">{{ part.title }}</a>{% else %}{{ part.title }}{% endif %} 
    65                               {%- if loop.last %}</span>{% else %} &rsaquo; {% endif %} 
     64                              {%- if part.link is not empty %}<a href="{{ part.link }}"{% if part.class is not empty %} class="{{part.class}}"{% endif %}>{{ part.title }}</a>{% else %}{{ part.title }}{% endif %} 
     65                              {%- if loop.last %}</span>{% else %} {% if loop.index0 == 1 %} : {% else %} &rsaquo; {% endif %}{% endif %} 
    6666                         {%- endfor -%} 
    6767                    </h2> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map