diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/static/js/JQueryCorporation.js | 14 | ||||
| -rw-r--r-- | ishtar_common/static/media/styles.css | 18 | ||||
| -rw-r--r-- | ishtar_common/templates/base.html | 1 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/wizard/validation_bar.html | 24 | 
4 files changed, 52 insertions, 5 deletions
diff --git a/ishtar_common/static/js/JQueryCorporation.js b/ishtar_common/static/js/JQueryCorporation.js new file mode 100644 index 000000000..e65001506 --- /dev/null +++ b/ishtar_common/static/js/JQueryCorporation.js @@ -0,0 +1,14 @@ +var current_status = 'corporation'; + +$(function() { +    var $radios = $('input:radio[name=person_type]'); +    if($radios.is(':checked') === false) { +        $radios.filter('[value='+ current_status +']').prop('checked', true); +    } + +    $radios.change(function(){ +        var loc = window.location; +        window.location = loc.protocol + '//' + loc.host + loc.pathname + "?status=" + $('input:radio[name=person_type]:checked').val(); +    }); +    $("#corporation_div").show(); +}); diff --git a/ishtar_common/static/media/styles.css b/ishtar_common/static/media/styles.css index 9722ed9fd..23217b791 100644 --- a/ishtar_common/static/media/styles.css +++ b/ishtar_common/static/media/styles.css @@ -22,3 +22,21 @@  #message span{      padding: 0 1em;  } + +div#footer{ +    position: fixed; +    bottom: 0px; +    width: 100%; +    left: 0px; +    z-index: 101; +} + +div#validation-bar{ +    padding: 5px 0; +} + +div#foot{ +    font-size: 0.75em; +    text-align: center; +    padding: 0.2em; +} diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 5a61d72e9..56469ef34 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -40,7 +40,6 @@      <link rel="stylesheet" href="{{STATIC_URL}}media/ui.jqgrid.css?ver={{VERSION}}">      <link rel="stylesheet" href="{{STATIC_URL}}media/styles.css?ver={{VERSION}}">      {% for url_css in JQGRID_CSS %}<link rel="stylesheet" href="{{url_css}}?ver={{VERSION}}">{% endfor %} -    <link rel="stylesheet" href="{{STATIC_URL}}pdl/styles.css?ver={{VERSION}}" />      {% endcompress %}      {% block extra_head %}      {% endblock %} diff --git a/ishtar_common/templates/ishtar/wizard/validation_bar.html b/ishtar_common/templates/ishtar/wizard/validation_bar.html index b99b9e689..c6856aa75 100644 --- a/ishtar_common/templates/ishtar/wizard/validation_bar.html +++ b/ishtar_common/templates/ishtar/wizard/validation_bar.html @@ -1,8 +1,24 @@  {% load i18n %} -<div id='validation-bar'> -    <input type="submit" id="submit_form" name='validate' value="{% trans 'Validate' %}"/> +<div id='validation-bar' class="row text-center"> +    <div class="col-sm"> +        <button type="submit" id="submit_form" name='validate' +                value="validate" class="btn btn-primary"> +            {% trans 'Validate' %} +        </button> +    </div>      {% if last_step_is_available and next_steps %} -    <input type="submit" id="submit_end_form" name='validate_and_end' value="{% trans 'Validate and end' %}"/> +    <div class="col-sm"> +        <button type="submit" id="submit_end_form" name='validate_and_end' +            value="validate_and_end" class="btn btn-primary"> +            {% trans 'Validate and end' %} +        </button> +    </div>      {% endif %} -    <a href="{% url 'reset_wizards' %}" id="reset_wizards" class='button'>{% trans "Cancel" %}</a> +    <div class="col-sm"> +        <a href="{% url 'reset_wizards' %}" id="reset_wizards"> +            <button type="button" class="btn btn-secondary"> +                {% trans "Cancel" %} +            </button> +        </a> +    </div>  </div>  | 
