Browse Source

Update projects template

pull/10/head
Hironsan 6 years ago
parent
commit
0295ea2f60
1 changed files with 18 additions and 2 deletions
  1. 20
      app/server/templates/projects.html

20
app/server/templates/projects.html

@ -1,4 +1,6 @@
{% extends "base.html" %} {% load static %} {% block content %}
{% extends "base.html" %} {% load static %}
{% load widget_tweaks %}
{% block content %}
<div id="projects_root"> <div id="projects_root">
<section class="hero project-image"> <section class="hero project-image">
<div class="container"> <div class="container">
@ -49,7 +51,21 @@
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
<section class="modal-card-body"> <section class="modal-card-body">
{{ form.as_p }}
{% for hidden_field in form.hidden_fields %}
{{ hidden_field }}
{% endfor %}
{% for field in form.visible_fields %}
<div class="field">
{{ field.label_tag }}
<div class="control">
{% render_field field class="input" %}
</div>
{% if field.help_text %}
<small class="form-text text-muted">{{ field.help_text }}</small>
{% endif %}
</div>
{% endfor %}
</section> </section>
<footer class="modal-card-foot" style="background-color:#dbdbdb !important;padding:20px !important;"> <footer class="modal-card-foot" style="background-color:#dbdbdb !important;padding:20px !important;">
<button class="button is-success">Create</button> <button class="button is-success">Create</button>

Loading…
Cancel
Save