root/trunk/wifidog-auth/wifidog/admin/templates/hotspot_edit.html @ 402

Revision 402, 2.4 KB (checked in by aprilp, 8 years ago)

Some kind of virtual login (we need to talk about this).
New User and Node classes
Modified all files to work with the classes.
Remove mgmt_helpers (all done in User class now)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1{include file="templates/header.html" title="Hotspot administration"}
2
3{node->GetID assign="node_id"}
4{node->GetDeploymentStatus assign="deployment_status"}
5
6<h3>{$title} {$smarty.const.HOTSPOT_NETWORK_NAME}</h3>
7
8<b style="position: absolute;top: 10px;right: 10px;">({$user_id})</b> <!-- DEBUG -->
9
10<form method="post" name="auth">
11
12<table id="node_list"> <!-- Refaire le formattage sans la table -->
13  <tr>
14    <td>ID:</td>
15<!-- Tmp work around to disable the hotspot ID -->
16{if $node_id == "new"}
17    <td><input type="text" name="new_node_id" value="{node->GetID}">&nbsp;{* $javascript *}</td><tr>
18{else}
19    <td><input type="text" value="{node->GetID}" DISABLED><input type="hidden" name="new_node_id" value="{node->GetID}"></td><tr>
20{/if}
21  <tr>
22    <td>{"Name"|_}:</td>
23    <td><input type="text" name="name" value="{node->GetName}"></td>
24  </tr>
25  <tr>
26    <td>{"RSS URL"|_}:</td>
27    <td><input type="text" name="rss_url" value="{node->GetRSSURL}"></td>
28  </tr>
29  <tr>
30    <td>{"Homepage URL"|_}</td>
31    <td><input type="text" name="home_page_url" value="{node->GetHomeURL}"></td>
32  </tr>
33  <tr>
34    <td>{"Description"|_}</td>
35    <td><input type="text" name="description" value="{node->GetDescription}"></td>
36  </tr>
37  <tr>
38    <td>{"Map URL"|_}</td>
39    <td><input type="text" name="map_url" value="{node->GetMapURL}"></td>
40  </tr>
41  <tr>
42    <td>{"Street address"|_}</td>
43    <td><input type="text" name="street_address" value="{node->GetStreetAddress}"></td>
44  </tr>
45  <tr>
46    <td>{"Public phone number"|_}</td>
47    <td><input type="text" name="public_phone_number" value="{node->GetPhoneNumber}"></td>
48  </tr>
49  <tr>
50    <td>{"Public email"|_}</td>
51    <td><input type="text" name="public_email" value="{node->GetEmail}"></td>
52  </tr>
53  <tr>
54    <td>{"Mass transit info"|_}</td>
55    <td><input type="text" name="mass_transit_info" value="{node->GetPublicTransit}"></td>
56  </tr>
57  <tr>
58    <td>{"Node deployment status"|_}</td>
59    <td>
60    <select name="node_deployment_status">
61    {html_options values=$node_deployment_status output=$node_deployment_status selected=$deployment_status}
62    </select>
63    </td>
64  </tr>
65</table>
66
67{if $node_id == "new"}
68<input type="hidden" name="action" value="add_new_node">
69{else}
70<input type="hidden" name="action" value="update_node">
71{/if}
72
73<input type="submit">
74</form>
75
76<br>
77<p>Work in progress note: Better DB integrity testing is needed before allowing the hotspot ID modification.</p>
78
79{include file="templates/footer.html"}
80
Note: See TracBrowser for help on using the browser.