Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
3726889d
Commit
3726889d
authored
7 years ago
by
Olimpia Magliulo
Browse files
Options
Downloads
Patches
Plain Diff
Change metadataconverter
- copy-to clipboard buttons - textareas
parent
de2035f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/metadata-converter.twig
+16
-11
16 additions, 11 deletions
templates/metadata-converter.twig
with
16 additions
and
11 deletions
templates/metadata-converter.twig
+
16
−
11
View file @
3726889d
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
{%
set
i
=
1
%}
{%
set
i
=
1
%}
{%
block
content
%}
{%
block
content
%}
<h
2
>
{{
pagetitle
}}
</h
2
>
<h
1
>
{{
pagetitle
}}
</h
1
>
<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
-
%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment