Commit 065ae6bb authored by Piper Biswell's avatar Piper Biswell
Browse files

Add "Delete" button for email address (Bug #1262908)



Changed link to delete email address in Profile from "[X]"
to a delete button.

Change-Id: I376b91ac490b7a9b9ec41846121991a69860fa88
Signed-off-by: default avatarPiper Biswell <piperbiswell.student@wegc.school.nz>
parent 7e0a4036
......@@ -4076,3 +4076,8 @@ ul.searchtab li span.inactive {
font-style: italic;
color: #888;
}
.inline-delete {
vertical-align: middle;
margin: 4px 0px;
}
......@@ -31,7 +31,7 @@
INPUT({'type': 'hidden', 'name': '{{$name}}_unsent[]' , 'value': {{$name}}_newrefinput.value}),
' ',
{{$name}}_newrefinput.value,
A({'href': '', 'onclick': '{{$name}}_remove(this); return false'}, '[x]'),
A({'href': '', 'onclick': '{{$name}}_remove(this); return false'}, IMG({'class':'inline-delete', 'alt': '{{str tag=delete}}', 'src':'{{theme_url filename="images/btn_deleteremove.png"}}'})),
' ' + {{$validationemailstr|safe}}
));
if (typeof formchangemanager !== 'undefined') {
......@@ -98,14 +98,14 @@
<label><input{{if $email == $default}} checked{{/if}} type="radio" name="{{$name}}_selected" value="{{$email}}">
<input type="hidden" name="{{$name}}_valid[]" value="{{$email}}">
{{$email}}</label>
<a href="" onclick="{{$name}}_remove(this); return false;">[x]</a>
<a href="" onclick="{{$name}}_remove(this); return false;"><img class="inline-delete"alt="{{str tag=delete}}" src="{{theme_url filename="images/btn_deleteremove.png"}}" /></a>
</div>
{{/foreach}}
{{foreach from=$unvalidated item=email}}
<div class="unvalidated">
<input type="hidden" name="{{$name}}_invalid[]" value="{{$email}}">
{{$email}}
<a href="" onclick="{{$name}}_remove(this); return false;">[x]</a>
<a href="" onclick="{{$name}}_remove(this); return false;"><img class="inline-delete" alt="{{str tag=delete}}" src="{{theme_url filename="images/btn_deleteremove.png"}}" /></a>
<span>{{str tag=validationemailsent section=artefact.internal}}</span>
</div>
{{/foreach}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment