LJSUP-17669: Login.bml form refactoring
[livejournal.git] / templates / Widgets / journal_titles.tmpl
blobd26ea7d515de544d3fb4d41572497cb1c21a8819
1 <h2 class="widget-header">
2     <TMPL_IF no_theme_chooser>
3         <TMPL_VAR expr="ml('widget.journaltitles.title_nonum')">
4     <TMPL_ELSE>
5         <TMPL_VAR expr="ml('widget.journaltitles.title')">
6     </TMPL_IF>
7 </h2>
9 <div class='theme-titles-content'>
11     <p class="detail">
12         <TMPL_VAR expr="ml('widget.journaltitles.desc')">
13         <TMPL_VAR helpicon>
14     </p>
16     <TMPL_LOOP titles>
17         <form method="POST" id="<TMPL_VAR id>_form" data-which="<TMPL_VAR id>" class='lj-widget' data-widget='journalTitles'>
18             <TMPL_VAR form_auth>
20             <dl class="theme-titles-item">
21                 <dt class="theme-titles-item-head">
22                     <label for="<TMPL_VAR id>">
23                         <TMPL_VAR name>
24                     </label>
25                 </dt>
26                 <dd class="theme-titles-item-body theme-titles-item-body-title" id="<TMPL_VAR id>_view">
27                     <strong class="theme-titles-item-title"><!--
28                         --><TMPL_VAR value ESCAPE=HTML><!--
29                     --></strong>
30                     <a
31                         href="javascript:void(0);"
32                         class="theme-title-control"
33                         id="<TMPL_VAR id>_edit"><!--
34                         --><TMPL_VAR expr="ml('widget.journaltitles.edit')"><!--
35                     --></a>
36                 </dd>
37                 <dd class="theme-titles-item-body theme-titles-item-body-input" id="<TMPL_VAR id>_modify">
38                     <input
39                         type="text"
40                         name="Widget[JournalTitles]_title_value"
41                         id="<TMPL_VAR id>"
42                         value="<TMPL_VAR value ESCAPE=HTML>"
43                         maxlength="100"
44                         size="30" />
45                     <input
46                         type="hidden"
47                         name="Widget[JournalTitles]_which_title"
48                         value="<TMPL_VAR id>" /><!--
49                     --><input
50                         type="submit"
51                         name="Widget[JournalTitles]_save"
52                         value="<TMPL_VAR expr="ml('widget.journaltitles.btn')">"
53                         id="save_btn_<TMPL_VAR id>" />
54                     <a
55                         href="javascript:void(0);"
56                         class="theme-title-control"
57                         id="<TMPL_VAR id>_cancel"><!--
58                         --><TMPL_VAR expr="ml('widget.journaltitles.cancel')"><!--
59                     --></a>
60                 </dd>
61             </dl>
63         </form>
64     </TMPL_LOOP>
66 </div>