|
@@ -10,19 +10,36 @@ file that was distributed with this source code.
|
|
|
#}
|
|
|
|
|
|
|
|
|
-<h1>View</h1>
|
|
|
-
|
|
|
-<form action="{{ url(urls.update.url, {'id': object.id}) }}" method="POST">
|
|
|
-
|
|
|
- {{ form|render_hidden }}
|
|
|
-
|
|
|
- {% for field in fields %}
|
|
|
- {{ field|render_form_element(form, object, {'urls' : urls}) }}
|
|
|
- {% endfor %}
|
|
|
-
|
|
|
+{% block title %}
|
|
|
{% if object.id %}
|
|
|
- <input type="submit" value="{% trans "btn_update" from "BaseApplicationBundle" %}"/>
|
|
|
+ <h1>Edit</h1>
|
|
|
{% else %}
|
|
|
- <input type="submit" value="{% trans "btn_create" from "BaseApplicationBundle" %}"/>
|
|
|
+ <h1>Create</h1>
|
|
|
{% endif %}
|
|
|
-</form>
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block actions %}
|
|
|
+ <div>
|
|
|
+ <ul>
|
|
|
+ <li><a href="{{ url(urls.create.url) }}">{% trans "link_action_create" from "BaseApplicationBundle" %}</a></li>
|
|
|
+ <li><a href="{{ url(urls.list.url) }}">{% trans "link_action_list" from "BaseApplicationBundle" %}</a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block form %}
|
|
|
+ <form action="{{ url(urls.update.url, {'id': object.id}) }}" method="POST">
|
|
|
+
|
|
|
+ {{ form|render_hidden }}
|
|
|
+
|
|
|
+ {% for field in fields %}
|
|
|
+ {{ field|render_form_element(form, object, {'urls' : urls}) }}
|
|
|
+ {% endfor %}
|
|
|
+
|
|
|
+ {% if object.id %}
|
|
|
+ <input type="submit" value="{% trans "btn_update" from "BaseApplicationBundle" %}"/>
|
|
|
+ {% else %}
|
|
|
+ <input type="submit" value="{% trans "btn_create" from "BaseApplicationBundle" %}"/>
|
|
|
+ {% endif %}
|
|
|
+ </form>
|
|
|
+{% endblock %}
|