Changeset 2448 in main


Ignore:
Timestamp:
06/10/13 14:52:02 (6 years ago)
Author:
clepetit
Message:

modify history's form appearence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/templates/history.html

    r2447 r2448  
    1515{% endblock %} 
    1616{% block content %} 
    17     <div id="display_form" style="border: solid 1px black; text-align: center; display: inline-block; padding: 10px; background-color: white"> 
     17    <div id="display_form" style="position: relative; left: 60%; border: solid 1px gray; text-align: center; display: inline-block; padding: 10px; background-color: rgb(200, 199, 197);"> 
    1818        <form action="." method="get"> 
    1919            {%if timeline%} 
    20                 <span style="text-decoration: underline" class='title_form_history'> {% trans "What did you want to display?" %} </span> <br /> <br /> 
     20                <span style="text-decoration: underline" class='title_form_history'> {%trans "What did you want to display?" %} </span> <br /> <br /> 
    2121                {{ form_object.as_p }} 
    2222                <hr /> 
     
    2626                <hr/> 
    2727            <input style="margin-bottom:10px" type="submit" value="Submit" /> <br/> 
    28             *: Required fields 
     28            {%trans "*: Required fields" %} 
    2929        </form> 
    3030    </div> 
    3131    <br /> 
    3232    <br /> 
    33     {% if date_before%} <a style="padding: 20px; position: relative; " href= "{%add_get date_history_begin=date_before%}">← Previous Period</a> {% endif %} 
    34     <span style="position: absolute; left: 45%; text-decoration: underline"> Period: {{date_end_period}} - {{date_begin_period}} </span>  
    35     {% if date_after %}<a style="position: absolute; right: 50px" href= "{%add_get date_history_begin=date_after%}">Next Period →</a> {% endif %} 
     33    {% if date_before%} <a style="padding: 20px; position: relative; " href= "{%add_get date_history_begin=date_before%}">{%trans "← Previous Period" %}</a> {% endif %} 
     34    <span style="position: absolute; left: 45%; text-decoration: underline">{{date_end_period}} - {{date_begin_period}} </span>  
     35    {% if date_after %}<a style="position: absolute; right: 50px" href= "{%add_get date_history_begin=date_after%}">{% trans "Next Period →" %}</a> {% endif %} 
    3636 
    3737    {% if object_history%} 
    3838        {% regroup object_history by get_day as histories %} 
    3939        {% for group in histories %} 
    40             <div class="timeline"> 
     40            <div class="timeline" > 
    4141                <h3 class="hplm">{{ group.grouper|naturalday|capfirst}}</h3> 
    4242 
     
    7676        <div class="timeline"> 
    7777             <h3 class="hplm">{{ date_begin_period|naturalday|capfirst}} - {{ date_end_period|naturalday|capfirst}}</h3> 
    78              <p> There are no event to display for this period</p> 
     78             <p> {% trans "There are no event to display for this period" %}</p> 
    7979        </div> 
    8080    {% endif %} 
    8181    <hr /> 
    82     {% if date_before%} <a style="position: absolute; left: 50px" href= "{%add_get date_history_begin=date_before%}">← Previous Period</a> {% endif %} 
     82    {% if date_before%} <a style="padding:20px;  position: relative; " href= "{%add_get date_history_begin=date_before%}">{%trans "← Previous Period" %}</a> {% endif %} 
    8383    <span style="position: absolute; left: 45%"> {{date_begin_period}} - {{date_end_period}} </span> 
    84     {% if date_after %}<a style="position: absolute; right: 50px" href= "{%add_get date_history_begin=date_after%}">Next Period →</a> {% endif %} 
     84    {% if date_after %}<a style="position: absolute; right: 50px" href= "{%add_get date_history_begin=date_after%}">{%trans "Next Period →"%} </a> {% endif %} 
    8585    <br /> 
    8686{% endblock %} 
Note: See TracChangeset for help on using the changeset viewer.