mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-22 03:44:57 +02:00
Added some basic part edit and create forms.
This commit is contained in:
parent
44c482caf2
commit
cc1badb853
15 changed files with 253 additions and 95 deletions
19
templates/edit_part_info.html.twig
Normal file
19
templates/edit_part_info.html.twig
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% extends "main_card.html.twig" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans with {'%name%': part.name} %}part.edit.title{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block card_title %}
|
||||
<i class="far fa-edit fa-fw" aria-hidden="true"></i>
|
||||
{% trans with {'%name%': part.name} %}part.edit.card_title{% endtrans %}
|
||||
<div class="float-right">
|
||||
{% trans %}id.label{% endtrans %}: {{ part.id }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block card_content %}
|
||||
{{ form_start(form) }}
|
||||
{{ form_widget(form) }}
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
16
templates/main_card.html.twig
Normal file
16
templates/main_card.html.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "base.html.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="card border-primary">
|
||||
{% block card_header %}
|
||||
<div class="card-header bg-primary text-white">
|
||||
{% block card_title %}{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block card_body %}
|
||||
<div class="card-body">
|
||||
{% block card_content %}{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue