Skip to content

Commit

Permalink
input: Style input forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Nov 7, 2022
1 parent bfd3172 commit c5bb5c6
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 45 deletions.
29 changes: 20 additions & 9 deletions cove_ofds/templates/cove_ofds/new_geojson.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,27 @@
{% block content %}



<div class="panel panel-default">
<form method="POST" action="{% url 'new_geojson' %}" enctype="multipart/form-data">
{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
<div class="panel-heading" role="tab" id="headingOne" data-toggle="collapse" data-parent="#accordion" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<h4 class="panel-title">
<a class="accordion-toggle">
<span class="glyphicon glyphicon-upload" aria-hidden="true"></span>{% trans "Upload" %}
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<form method="POST" action="{% url 'new_geojson' %}" enctype="multipart/form-data">{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
</div>
</div>
</div>

{% endblock %}
29 changes: 20 additions & 9 deletions libcoveweb2/templates/libcoveweb2/new_csvs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@

{% block content %}


<div class="panel panel-default">
<form method="POST" action="{% url 'new_csvs' %}" enctype="multipart/form-data">
{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
<div class="panel-heading" role="tab" id="headingOne" data-toggle="collapse" data-parent="#accordion" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<h4 class="panel-title">
<a class="accordion-toggle">
<span class="glyphicon glyphicon-upload" aria-hidden="true"></span>{% trans "Upload" %}
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<form method="POST" action="{% url 'new_csvs' %}" enctype="multipart/form-data">{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
</div>
</div>
</div>

{% endblock %}
57 changes: 39 additions & 18 deletions libcoveweb2/templates/libcoveweb2/new_json.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,48 @@


<div class="panel panel-default">
<form method="POST" action="{% url 'new_json' %}" enctype="multipart/form-data">
{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
<div class="panel-heading" role="tab" id="headingOne" data-toggle="collapse" data-parent="#accordion" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<h4 class="panel-title">
<a class="accordion-toggle">
<span class="glyphicon glyphicon-upload" aria-hidden="true"></span>{% trans "Upload" %}
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<form method="POST" action="{% url 'new_json' %}" enctype="multipart/form-data">{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
</div>
</div>
</div>


<div class="panel panel-default">
<form method="POST" action="{% url 'new_json' %}" enctype="multipart/form-data">
{% csrf_token %}
{% bootstrap_form forms.text_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
<div class="panel-heading" role="tab" id="headingTwo" data-toggle="collapse" data-parent="#accordion" data-target="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo">
<h4 class="panel-title">
<a class="accordion-toggle">
<span class="glyphicon glyphicon-upload" aria-hidden="true"></span>{% trans "Paste" %}
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<form method="POST" action="{% url 'new_json' %}" enctype="multipart/form-data">{% csrf_token %}
{% bootstrap_form forms.text_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
</div>
</div>
</div>

{% endblock %}
30 changes: 21 additions & 9 deletions libcoveweb2/templates/libcoveweb2/new_spreadsheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,27 @@


<div class="panel panel-default">
<form method="POST" action="{% url 'new_spreadsheet' %}" enctype="multipart/form-data">
{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
<div class="panel-heading" role="tab" id="headingOne" data-toggle="collapse" data-parent="#accordion" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<h4 class="panel-title">
<a class="accordion-toggle">
<span class="glyphicon glyphicon-upload" aria-hidden="true"></span>{% trans "Upload" %}
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<form method="POST" action="{% url 'new_spreadsheet' %}" enctype="multipart/form-data">{% csrf_token %}
{% bootstrap_form forms.upload_form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans 'Submit' %}
</button>
{% endbuttons %}
</form>
</div>
</div>
</div>



{% endblock %}

0 comments on commit c5bb5c6

Please sign in to comment.