source: indico/indico/MaKaC/webinterface/tpls/AbstractDisplay.tpl @ d8fbd8

hello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.98b2v0.99v1.0v1.1
Last change on this file since d8fbd8 was d8fbd8, checked in by Jose Benito <jose.benito.gonzalez@…>, 21 months ago

[IMP] Abstract submission form

  • Many changes done to improve the abstract submission part:
  • Same classes for the abstract wrapper for both, display and management (before 2 differents ways to do this)
  • Added new class AbstractParam? to use inheritance.
  • Common template (AbstractDataModification?.tpl) for the submit/modify functionality everywhere and for the abstract preview.
  • Taken out all html code from python files for this functionality -> A lot of new code within the AbstractDataModification? template.
  • Allow to add existing authors.
  • Drag and drop to move authors and co-authors using jquery. New JS classes to manage the authors list.
  • Added more checks on submit the form.
  • New way to give feedback to the user for the limited fields.
  • Deleted some templates not used anymore.
  • New file Dragndrop.js with some standard code for drag and drop.
  • New fossil of the Author class (abstractDataWrapper) to keep the author values if the server gets an error.
  • Added functionality to add attached files in abstract submission form.
  • Included new LocalFile? fossil to set a new url for the files.
  • Added new path for the abstract attachments in the repository.
  • New attribute in class Abstract for the attachments.
  • Implemented functionlity in class Abstract to store new materials, delete materials, clone materials, check materials size...
  • Files size checked in the server side.
  • New param "attachments" to show the attached files in the abstract display/modify pages.
  • New UH and RH classes to get an attached file.
  • Included new attachments and files that are already attached (if modifying abstract) in the .tpl.
  • File/s size checked in the client size.
  • Implemented functionality in the interface to add/delete new attachments and to delete files already attached (if modifying)

Other things included in this ticket:

  • Fixed a bug in Default.css (extra " causing errors in IE7)
  • Added some internationalization to the parameter manager error messages.
  • Fixed bug within jquery-ui.js file in line -8262,7: Extra ',' at the end causing error in IE7.
  • New var in indico.conf.sample to limit he maximum size per file.
  • Renamed the var used in indico.conf.sample to limit the maximum size per request.
  • Sticky footer modifying some CSS properties.
  • Fixed some bugs in abstract display protection.
  • New class KeyAccessError?.
  • Fixed bug in AccessControler? class when the owner hasn't owner (highest level).
  • Replaced deprecated indico project url (<http://cern.ch/indico>) by the current one (<http://indico-software.org/>).
  • Fixed bug in AbstractMgr? to check if the author belongs to any abstract.
  • Removed internationalization of menu entries in displayMgr.py
  • closes #89
  • Property mode set to 100644
File size: 10.5 KB
Line 
1
2<table width="100%" align="center">
3    <tr>
4        <td align="center">
5            <table align="center">
6                <tr>
7                    <form action=${ modifyURL } method="POST">
8                    <td>
9                        <input type="submit" class="btn" value="${ _("modify")}" ${ btnModifyDisabled }>
10                    </td>
11                    </form>
12                    <form action=${ withdrawURL } method="POST">
13                    <td>
14                        <input type="submit" class="btn" value="${ _("withdraw")}" ${ btnWithdrawDisabled }>
15                    </td>
16                    </form>
17                    ${ btnRecover }
18                </tr>
19            </table>
20        </td>
21    </tr>
22    <tr>
23        <td>
24            <table width="95%" style="border:1px solid #777777;" cellspacing="1" align="center">
25             <tr>
26                    <td bgcolor="white">
27                        <table width="90%" align="center">
28                            <tr>
29                                <td align="center">
30                                    <font size="+1" color="black"><b>${ title }</b></font>
31                                </td>
32                            </tr>
33                <tr><td>&nbsp;</td></tr>
34                            <tr>
35                                <td><br></td>
36                            </tr>
37                            <tr>
38                                <td>
39                                    <table width="90%" align="center">
40                                        <tr>
41                                            <td>
42                                                <table width="100%" cellspacing="0">
43                                                    <tr>
44                                                        <td nowrap class="displayField"><b> ${ _("Abstract ID")} :</b></td>
45                                                        <td width="100%">${ abstractId }</td>
46                                                    </tr>
47                                                </table>
48                                            </td>
49                                        </tr>
50           ${ additionalFields }
51                                        <tr>
52                                            <td>
53                                                <table width="100%" cellspacing="0">
54                                                    <tr>
55                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Attached files")} :</b></td>
56                                                        <td width="100%">
57                                                        % if len(attachments) == 0:
58                                                            <span>--none--</span>
59                                                        % else:
60                                                            % for file in attachments:
61                                                                <div style="padding-bottom:3px;"><a href=${ file["url"] }>${ file["file"]["fileName"] }</a></div>
62                                                            % endfor
63                                                        % endif
64                                                        </td>
65                                                    </tr>
66                                                </table>
67                                            </td>
68                                        </tr>
69                                        <tr>
70                                            <td>
71                                                <table width="100%" cellspacing="0">
72                                                    <tr>
73                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Primary authors")} :</b></td>
74                                                        <td width="100%">${ primary_authors }</td>
75                                                    </tr>
76                                                </table>
77                                            </td>
78                                        </tr>
79                                        <tr>
80                                            <td>
81                                                <table width="100%" cellspacing="0">
82                                                    <tr>
83                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Co-Authors")} :</b></td>
84                                                        <td width="100%">${ authors }</td>
85                                                    </tr>
86                                                </table>
87                                            </td>
88                                        </tr>
89                                        <tr>
90                                            <td><table width="100%" cellspacing="0">
91                                                    <tr>
92                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Presenters")} :</b></td>
93                                                        <td width="100%">${ speakers }</td>
94                                                    </tr>
95                                                </table>
96                                            </td>
97                                        </tr>
98                                        <tr>
99                                            <td>
100                                                <table width="100%" cellspacing="0">
101                                                    <tr>
102                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Track classification")} :</b></td>
103                                                        <td width="100%">${ tracks }</td>
104                                                    </tr>
105                                                </table>
106                                            </td>
107                                        </tr>
108                                        ${ contribType }
109                                        <tr>
110                                            <td>
111                                                <table cellspacing="0">
112                                                    <tr>
113                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Submitted by")} :</b></td>
114                                                        <td>${ submitter }</td>
115                                                    </tr>
116                                                </table>
117                                            </td>
118                                        </tr>
119                                        <tr>
120                                            <td>
121                                                <table width="100%" cellspacing="0">
122                                                    <tr>
123                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Submitted on")} :</b></td>
124                                                        <td width="100%">${ submissionDate }</td>
125                                                    </tr>
126                                                </table>
127                                            </td>
128                                        </tr>
129                                        <tr>
130                                            <td>
131                                                <table width="100%" cellspacing="0">
132                                                    <tr>
133                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Last modified on")} :</b></td>
134                                                        <td width="100%">${ modificationDate }</td>
135                                                    </tr>
136                                                </table>
137                                            </td>
138                                        </tr>
139                                        <tr>
140                                            <td>
141                                                <table>
142                                                    <tr>
143                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Status")} :</b></td>
144                                                        <td>${ status }</td>
145                                                    </tr>
146                                                </table>
147                                            </td>
148                                        </tr>
149                                        <tr>
150                                            <td>
151                                                <table cellspacing="0">
152                                                    <tr>
153                                                        <td nowrap class="displayField" valign="top"><b> ${ _("Comments")} :</b></td>
154                                                    </tr>
155                                                    <tr>
156                                                        <td width="30"></td>
157                                                        <td><pre>${ comments }</pre></td>
158                                                    </tr>
159                                                </table>
160                                            </td>
161                                        </tr>
162                                    </table>
163                                </td>
164                            </tr>
165                        </table>
166                    </td>
167                </tr>
168            </table>
169        </td>
170    </tr>
171    <tr>
172        <td align="center">
173            <table align="center">
174                <tr>
175                    <form action=${ modifyURL } method="POST">
176                    <td>
177                        <input type="submit" class="btn" value="${ _("modify")}" ${ btnModifyDisabled }>
178                    </td>
179                    </form>
180                    <form action=${ withdrawURL } method="POST">
181                    <td>
182                        <input type="submit" class="btn" value="${ _("withdraw")}" ${ btnWithdrawDisabled }>
183                    </td>
184                    </form>
185                    ${ btnRecover }
186                </tr>
187            </table>
188        </td>
189    </tr>
190</table>
191<br>
Note: See TracBrowser for help on using the repository browser.