Skip to content
Snippets Groups Projects
Commit 3726889d authored by Olimpia Magliulo's avatar Olimpia Magliulo
Browse files

Change metadataconverter

- copy-to clipboard buttons
- textareas
parent de2035f4
No related branches found
No related tags found
No related merge requests found
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
{% set i=1 %} {% set i=1 %}
{% block content %} {% block content %}
<h2>{{ pagetitle }}</h2> <h1>{{ pagetitle }}</h1>
<form method="post" class="pure-form" enctype="multipart/form-data"> <form method="post" class="pure-form" enctype="multipart/form-data">
<p> {% trans 'XML metadata' %}</p> <h3> {% trans 'XML metadata' %}</h3>
<div class="pure-control-group"> <div class="pure-control-group">
<textarea name="xmldata" rows="20" class="textarea">{{ xmldata }}</textarea> <textarea name="xmldata" rows="20" class="xmlarea edge">{{ xmldata }}</textarea>
</div> </div>
<br> <br>
<div class="center"> <div class="center">
<div class="pure-button-group" role="group"> <div class="pure-button-group overflow" role="group">
<label class="pure-button"><i class="fa fa-folder-open"> </i> Select a file... <label class="pure-button"><i class="fa fa-folder-open"> </i> Select a file...
<input type="file" name="xmlfile" class="hidden" multiple> <input type="file" name="xmlfile" class="hidden" multiple>
</label> </label>
...@@ -26,15 +26,20 @@ ...@@ -26,15 +26,20 @@
<br> <br>
<h2>{{ 'Converted metadata'|trans }}</h2> <h2>{{ 'Converted metadata'|trans }}</h2>
{% for type, text in output if text -%} {% for type, text in output if text -%}
<div class="inline"></div>
<h3> {{ type }}</h3>
<div class="metadatabox"> <div class="metadatabox">
<button data-clipboard-target="#metadata{{ loop.index }}" id="btn{{loop.index }}" class="btn topright clipboard-btn" onclick="metadata({{ loop.index }})" > <div class="metadata-type">
<img src="/{{ baseurlpath }}resources/icons/clipboard.svg" <h3> {{ type }}</h3>
alt="Copy to clipboard" /> <button data-clipboard-target="#metadata{{ loop.index }}" id="btn{{loop.index }}" class="pure-button right clipboard-btn" onclick="metadata({{ loop.index }})" >
</button> <i class="fa fa-copy"></i>
<pre id="metadata{{ loop.index }}">{{ text }}</pre> </button>
</div>
<div class="metadata-code">
<pre id="metadata{{ loop.index }}">
{%- spaceless %}{{ text }}{% endspaceless %}
</pre>
</div>
</div> </div>
<br><br>
{%- set i=i+1 %} {%- set i=i+1 %}
{%- endfor -%} {%- endfor -%}
{% endif -%} {% endif -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment