PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_facebook/templates/admin_facebook.tpl

http://github.com/zotonic/zotonic
Smarty Template | 63 lines | 47 code | 16 blank | 0 comment | 1 complexity | d635066c34341c5b82198934581caab1 MD5 | raw file
 1{% extends "admin_base.tpl" %}
 2
 3{% block title %}{_ Facebook API Configuration _}{% endblock %}
 4
 5{% block content %}
 6
 7<div class="admin-header">
 8
 9    <h2>{_ Facebook API Configuration _}</h2>
10
11    <p>{_ Here you find the settings to authenticate users with facebook. You can find these values in <a href="http://www.facebook.com/developers/apps.php" title="Developer Dashboard">Your Facebook Developer Dashboard</a> _}</p>
12
13    {% wire id="admin_facebook" type="submit" postback="admin_facebook" %}
14    <form name="admin_facebook" id="admin_facebook" method="POST" action="postback">
15
16        <div class="widget">
17            <h3 class="widget-header">Facebook</h3>
18            <div class="widget-content">
19
20                <div class="control-group">
21                    <label for="app_id">{_ App ID. _}</label>
22                    <div class="controls">
23                        <input type="text" id="appid" name="appid" value="{{ m.config.mod_facebook.appid.value|escape }}" class="span6" />
24                    </div>
25                </div>
26                
27                <div class="control-group">
28                    <label class="control-label" for="appsecret">{_ App Secret _}</label>
29                    <div class="controls">
30                        <input type="text" id="appsecret" name="appsecret" value="{{ m.config.mod_facebook.appsecret.value|escape }}" class="span6" />
31                    </div>
32                </div>
33                
34                <div class="control-group">
35                    <label class="control-label" for="scope">{_ Scope _}</label>
36                    <div class="controls">
37                        <input type="text" id="scope" name="scope" value="{{ m.config.mod_facebook.scope.value|default:'email'|escape }}" class="span6" />
38                    </div>
39                </div>
40
41                <div class="control-group">
42                    <div class="controls">
43                        <label class="checkbox" for="useauth">
44                            <input type="checkbox" id="useauth" name="useauth" {% if m.config.mod_facebook.useauth.value %}checked="checked"{% endif %} value="1" />
45                            {_ Use Facebook authentication _}
46                        </label>
47                    </div>
48                </div>
49
50                <div class="control-group">
51                    <div class="controls">
52                        <button class="btn btn-primary" type="submit">{_ Save Facebook Settings _}</button>
53                    </div>
54                </div>
55                
56            </div>
57        </div>
58        
59    </form>
60</div>
61
62
63{% endblock %}