Skip to content

Commit

Permalink
clean up schemas templates
Browse files Browse the repository at this point in the history
  • Loading branch information
diversen7 committed Oct 27, 2023
1 parent 99ac30b commit c65e593
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stadsarkiv_client/templates/schemas/schemas.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@

{% block content %}


{% include "includes/main_title.html" %}

<form method="post" action="{{ url_for('schemas_post')}}">
<input type="text" name="type" placeholder="Type" aria-label="Type">
<textarea name="data" placeholder="Data"></textarea>
<button type="submit" class="contrast">{{ translate('Create Schema') }}</button>
<button type="submit" class="contrast">{{ 'Opret skema' }}</button>
</form>

<table>
{% for schema in schemas %}
<tr>
<td><a href="/schemas/{{ schema.type }}"> {{ translate('View schema') }}: {{ schema.type }} </a></td>
<td><a href="/entities/{{ schema.type }}"> {{ translate('Create entity') }}: {{ schema.type }} </a></td>
<td><a href="{{ url_for('entities_create', schema_type=schema.type) }}"> {{ 'Opret entitet' }}: {{ schema.type }} </a></td>
</tr>
</tr>
{% endfor %}
Expand Down

0 comments on commit c65e593

Please sign in to comment.