-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split export section from radio table settings screen
Issue #116
- Loading branch information
1 parent
b34be0b
commit 09b46dd
Showing
9 changed files
with
159 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* export list */ | ||
|
||
.radio-table-export-list { | ||
list-style: none; | ||
padding-left: 0; | ||
} | ||
.radio-table-export-list li { | ||
margin-top: 0.8em; | ||
} | ||
.radio-table-export-list a { | ||
margin-right: 0.7em; | ||
width: 250px; | ||
vertical-align: baseline; | ||
} | ||
|
||
@media (max-width: 800px) | ||
{ | ||
.radio-table-export-list a.button { | ||
margin: 0.23em 0 0.7em 0; | ||
width: 100%; | ||
max-width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{% extends 'layout.html.twig' %} | ||
|
||
{% block page_title %}{{ 'radio_table.export.title'|trans }}{% endblock %} | ||
|
||
{% block head_closing %} | ||
{{ encore_entry_link_tags('radio-table-export') }} | ||
{{ encore_entry_script_tags('radio-table-export') }} | ||
{% endblock %} | ||
|
||
{% block context_menu %} | ||
<ul> | ||
<li> | ||
<a href="{{ path('radio_table.show', {id: radio_table.id}) }}"> | ||
{{ 'radio_table.show.title'|trans }} | ||
</a> | ||
</li> | ||
<li> | ||
<a href="{{ path('radio_table.settings', {id: radio_table.id}) }}"> | ||
{{ 'radio_table.settings.title'|trans }} | ||
</a> | ||
</li> | ||
</ul> | ||
{% endblock %} | ||
|
||
{% block page_content %} | ||
<header> | ||
<h1 class="separated-title"> | ||
<span>{{ 'radio_table.export.title'|trans }}</span> | ||
<span class="additional">{{ radio_table.name }}</span> | ||
</h1> | ||
</header> | ||
|
||
<div class="tabbed-ui"> | ||
<div> | ||
<h2>{{ 'radio_table.export.heading.export'|trans }}</h2> | ||
|
||
{% if radio_table.radioStationsCount > 0 %} | ||
<p class="information"> | ||
{{ 'radio_table.export.information.export'|trans }} | ||
</p> | ||
|
||
<ul class="radio-table-export-list"> | ||
<li> | ||
<a href="{{ path('radio_table.download', {id: radio_table.id, _format: 'xlsx'}) }}" class="button"> | ||
{{ 'radio_table.export.action.download_xlsx'|trans }} | ||
</a> | ||
{{ 'radio_table.export.text.about_xlsx'|trans }} | ||
</li> | ||
<li> | ||
<a href="{{ path('radio_table.download', {id: radio_table.id, _format: 'ods'}) }}" class="button"> | ||
{{ 'radio_table.export.action.download_ods'|trans }} | ||
</a> | ||
{{ 'radio_table.export.text.about_ods'|trans }} | ||
</li> | ||
<li> | ||
<a href="{{ path('radio_table.download', {id: radio_table.id, _format: 'csv'}) }}" class="button"> | ||
{{ 'radio_table.export.action.download_csv'|trans }} | ||
</a> | ||
{{ 'radio_table.export.text.about_csv'|trans }} | ||
</li> | ||
<li> | ||
<a href="{{ path('radio_table.download', {id: radio_table.id, _format: 'pdf'}) }}" class="button"> | ||
{{ 'radio_table.export.action.download_pdf'|trans }} | ||
</a> | ||
{{ 'radio_table.export.text.about_pdf'|trans }} | ||
</li> | ||
<li> | ||
<a href="{{ path('radio_table.download', {id: radio_table.id, _format: 'html'}) }}" class="button"> | ||
{{ 'radio_table.export.action.download_html'|trans }} | ||
</a> | ||
{{ 'radio_table.export.text.about_html'|trans }} | ||
</li> | ||
</ul> | ||
{% else %} | ||
<p class="information"> | ||
{{ 'radio_table.export.information.export_cannot_empty'|trans }} | ||
</p> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters