aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-05 14:45:28 -0800
committerzotlabs <mike@macgirvin.com>2017-02-05 14:45:28 -0800
commite2ee4ae0244ff1698b28f89b05ea9b0ce65273aa (patch)
treee5904c2c105feaefc064bc084f740a93ee20326b
parentab698305bf9b269f5b19de5cd7b0d175dd0e0c29 (diff)
downloadvolse-hubzilla-e2ee4ae0244ff1698b28f89b05ea9b0ce65273aa.tar.gz
volse-hubzilla-e2ee4ae0244ff1698b28f89b05ea9b0ce65273aa.tar.bz2
volse-hubzilla-e2ee4ae0244ff1698b28f89b05ea9b0ce65273aa.zip
better theming of rmagic page
-rw-r--r--Zotlabs/Module/Rmagic.php15
-rwxr-xr-xview/tpl/rmagic.tpl18
2 files changed, 14 insertions, 19 deletions
diff --git a/Zotlabs/Module/Rmagic.php b/Zotlabs/Module/Rmagic.php
index 9252d1f1d..9fcc72441 100644
--- a/Zotlabs/Module/Rmagic.php
+++ b/Zotlabs/Module/Rmagic.php
@@ -70,13 +70,12 @@ class Rmagic extends \Zotlabs\Web\Controller {
function get() {
-
- $o = replace_macros(get_markup_template('rmagic.tpl'),array(
- '$title' => t('Remote Authentication'),
- '$desc' => t('Enter your channel address (e.g. channel@example.com)'),
- '$submit' => t('Authenticate')
- ));
- return $o;
-
+ return replace_macros(get_markup_template('rmagic.tpl'),
+ [
+ '$title' => t('Remote Authentication'),
+ '$address' => [ 'address', t('Enter your channel address (e.g. channel@example.com)'), '', '' ],
+ '$submit' => t('Authenticate')
+ ]
+ );
}
}
diff --git a/view/tpl/rmagic.tpl b/view/tpl/rmagic.tpl
index d0f7aab64..9d84e4a36 100755
--- a/view/tpl/rmagic.tpl
+++ b/view/tpl/rmagic.tpl
@@ -1,13 +1,9 @@
<div class="generic-content-wrapper-styled">
-<h3>{{$title}}</h3>
-
-<form action="rmagic" method="post" >
-
- <label for="rmagic-address" id="label-rmagic-address" class="rmagic-label">{{$desc}}</label>
- <input type="text" maxlength="255" size="32" name="address" id="rmagic-address" class="rmagic-input" value="" />
-
- <input type="submit" name="submit" id="rmagic-submit-button" value="{{$submit}}" />
- <div id="rmagic-submit-end" class="rmagic-field-end"></div>
-
-</form>
+ <h3>{{$title}}</h3>
+ <form action="rmagic" method="post" >
+ <div class="form-group">
+ {{include file="field_input.tpl" field=$address}}
+ <input class="btn btn-primary" type="submit" name="submit" id="rmagic-submit-button" value="{{$submit}}" />
+ </div>
+ </form>
</div>