better theming of rmagic page
This commit is contained in:
parent
ab698305bf
commit
e2ee4ae024
@ -70,13 +70,12 @@ class Rmagic extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
|
return replace_macros(get_markup_template('rmagic.tpl'),
|
||||||
$o = replace_macros(get_markup_template('rmagic.tpl'),array(
|
[
|
||||||
'$title' => t('Remote Authentication'),
|
'$title' => t('Remote Authentication'),
|
||||||
'$desc' => t('Enter your channel address (e.g. channel@example.com)'),
|
'$address' => [ 'address', t('Enter your channel address (e.g. channel@example.com)'), '', '' ],
|
||||||
'$submit' => t('Authenticate')
|
'$submit' => t('Authenticate')
|
||||||
));
|
]
|
||||||
return $o;
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
<div class="generic-content-wrapper-styled">
|
<div class="generic-content-wrapper-styled">
|
||||||
<h3>{{$title}}</h3>
|
<h3>{{$title}}</h3>
|
||||||
|
|
||||||
<form action="rmagic" method="post" >
|
<form action="rmagic" method="post" >
|
||||||
|
<div class="form-group">
|
||||||
<label for="rmagic-address" id="label-rmagic-address" class="rmagic-label">{{$desc}}</label>
|
{{include file="field_input.tpl" field=$address}}
|
||||||
<input type="text" maxlength="255" size="32" name="address" id="rmagic-address" class="rmagic-input" value="" />
|
<input class="btn btn-primary" type="submit" name="submit" id="rmagic-submit-button" value="{{$submit}}" />
|
||||||
|
</div>
|
||||||
<input type="submit" name="submit" id="rmagic-submit-button" value="{{$submit}}" />
|
|
||||||
<div id="rmagic-submit-end" class="rmagic-field-end"></div>
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user