Skip to content

Commit 9f484a9

Browse files
committed
Cleanup inline-css
1 parent 81320a8 commit 9f484a9

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

public/assets/css/metaedit.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ table.formtable tr td input,table.formtable tr td textarea {
2828
}
2929

3030
table.metalist {
31+
width: 100%;
3132
border: 1px solid #aaa;
3233
border-collapse: collapse;
3334
}
@@ -43,3 +44,21 @@ table.metalist tr.even td {
4344
p#formedit-right {
4445
float: right;
4546
}
47+
48+
#editarea {
49+
height: 200px;
50+
width: 90%;
51+
border: 1px solid #aaa;
52+
}
53+
54+
#edit-submit {
55+
margin-top: 5px;
56+
}
57+
58+
#import-submit {
59+
margin-top: .5em;
60+
}
61+
62+
span.readonly {
63+
color: #aaa;
64+
}

src/MetaEditor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function header(string $name): string
125125
*/
126126
protected function readonlyDateField(array $metadata, string $key, string $name): string
127127
{
128-
$value = '<span style="color: #aaa">Not set</a>';
128+
$value = '<span class="readonly">Not set</a>';
129129
if (array_key_exists($key, $metadata)) {
130130
$value = date('j. F Y, G:i', $metadata[$key]);
131131
}
@@ -253,6 +253,6 @@ public function metaToForm(array $metadata): string
253253
'</table></div><div id="saml"><table class="formtable">' .
254254
$this->endpointField($metadata, 'AssertionConsumerService', 'AssertionConsumerService endpoint') .
255255
$this->endpointField($metadata, 'SingleLogoutService', 'SingleLogoutService endpoint') .
256-
'</table></div></div><input type="submit" name="submit" value="Save" style="margin-top: 5px" /></form>';
256+
'</table></div></div><input type="submit" id="edit-submit" name="submit" value="Save" /></form>';
257257
}
258258
}

templates/metalist.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<h2>Your entries</h2>
1919

20-
<table class="metalist" style="width: 100%">
20+
<table class="metalist">
2121

2222
{% if metadata|length > 0 %}
2323
<tr><td colspan="3">No entries registered</td></tr>
@@ -42,7 +42,7 @@
4242
<p><a href="/module.php/metaedit/edit">Add new entity</a> | <a href="/module.php/metaedit/import">Add from SAML 2.0 XML metadata</a></p>
4343

4444
<h2>Other entries</h2>
45-
<table class="metalist" style="width: 100%">
45+
<table class="metalist">
4646

4747
{% if metadata|length > 0 %}
4848
<tr><td colspan="3">No entries registered</td></tr>

templates/xmlimport.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
<form method="post" action="/edit">
88
<p>Paste in SAML 2.0 XML Metadata for the entity that you would like to add.</p>
9-
<textarea style="height: 200px; width: 90%; border: 1px solid #aaa;" cols="50" rows="5" name="xmlmetadata"></textarea>
10-
<input type="submit" style="margin-top: .5em" name="metasubmit" value="Import metadata" />
9+
<textarea id="editarea" cols="50" rows="5" name="xmlmetadata"></textarea>
10+
<input type="submit" id="import-submit" name="metasubmit" value="Import metadata" />
1111
</form>
1212

1313
<p style="float: right"><a href="/module.php/metaedit/">Return to entity listing</a></p>

0 commit comments

Comments
 (0)