|
60 | 60 | 'is_final' => $value[ $tbl_name . '_is_final'] );
|
61 | 61 | }
|
62 | 62 |
|
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +$job_id = post_or_get('j'); |
| 67 | + |
| 68 | + |
63 | 69 | ?>
|
64 | 70 | <!DOCTYPE HTML>
|
65 | 71 | <html>
|
|
84 | 90 | <script language="javascript" type="text/javascript" src="./js/lib/bootstrap-select.min.js"></script>
|
85 | 91 | <script language="javascript" type="text/javascript" src="./js/lib/prettyCheckable.js"></script>
|
86 | 92 | <script language="javascript" type="text/javascript" src="./js/lib/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.min.js"></script>
|
87 |
| - |
| 93 | + <!-- JoM libraries --> |
88 | 94 | <script language="javascript" type="text/javascript" src="./js/generic_lib.js"></script>
|
89 | 95 | <title>***</title>
|
90 | 96 | <script>
|
|
108 | 114 | }
|
109 | 115 | }
|
110 | 116 | };
|
| 117 | + |
| 118 | + // edit pencil icon show/hide |
| 119 | + $(".jom__edit_field").css("opacity", "0"); |
| 120 | + $(".jom__job_editable").on("mouseenter", function(){ |
| 121 | + //$(this).find(".jom__edit_field").css("visibility", "visible"); |
| 122 | + //$(this).find(".jom__edit_field").hide(); |
| 123 | + //$(this).find(".jom__edit_field").fadeIn('fast'); |
| 124 | + $(".jom__edit_field").css("opacity", "0"); |
| 125 | + $(this).parent().find(".jom__edit_field").animate({opacity: 1}, {duration: 300}); |
| 126 | + }); |
| 127 | + $(".jom__job_editable").parent().on("mouseleave", function(){ |
| 128 | + //$(this).find(".jom__edit_field").css("visibility", "hidden"); |
| 129 | + $(this).find(".jom__edit_field").animate({opacity: 0}, {duration: 200}); |
| 130 | + }); |
| 131 | + |
| 132 | + // x-editable code |
| 133 | + $.fn.editable.defaults.mode = 'popup'; |
| 134 | + $(".jom__job_editable").editable(); |
111 | 135 | });
|
112 | 136 | </script>
|
113 | 137 | <style>
|
|
147 | 171 |
|
148 | 172 |
|
149 | 173 | <!-- JOB DATA -->
|
| 174 | + <!-- SUBJECT AND CODE --> |
150 | 175 | <div class="row">
|
151 | 176 | <div class="span1 offset3 text-right">
|
152 |
| - <i class="icon-pencil icon-white"></i> <span class="label label-info">#12</span> |
| 177 | + <i class="icon-pencil icon-white jom__edit_field"></i> <a href="#" class="label label-info jom__job_editable">#12</a> |
153 | 178 | </div>
|
154 | 179 | <div class="span9" style="padding-bottom: 5px;">
|
155 |
| - <i class="icon-pencil icon-white"></i> <span style="font-size: 1.6em;">nome/titolo job</span> |
| 180 | + <i class="icon-pencil icon-white jom__edit_field"></i> <a href="#" class="jom__job_editable" style="font-size: 1.6em;">nome/titolo job</a> |
156 | 181 | </div>
|
157 | 182 | </div>
|
158 |
| - <div class="row"> |
| 183 | + |
| 184 | + <!-- BASIC DATA --> |
| 185 | + <div class="row jom__job_basic_data"> |
159 | 186 | <div class="span8 offset4" style="border-top: 1px solid #AFAFAF;">
|
160 | 187 | <h4 style="padding-left: 0.9em;">Basic data</h4>
|
161 | 188 | <dl class="dl-horizontal">
|
162 | 189 | <dt>description</dt>
|
163 |
| - <dd><i class="icon-pencil icon-white"></i> descrizione</dd> |
| 190 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> <a href="#" class="jom__job_editable" data-type="textarea" data-placement="bottom"> descrizione</a></dd> |
164 | 191 | <br>
|
165 | 192 | <dt>status</dt>
|
166 |
| - <dd><i class="icon-pencil icon-white"></i> just created</dd> |
| 193 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> <a href="#" class="jom__job_editable">just created</a></dd> |
167 | 194 | <dt>priority</dt>
|
168 |
| - <dd><i class="icon-pencil icon-white"></i> high</dd> |
| 195 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> <a href="#" class="jom__job_editable">high</a></dd> |
169 | 196 | <dt>assigned to</dt>
|
170 |
| - <dd><i class="icon-pencil icon-white"></i> me</dd> |
| 197 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> me</dd> |
171 | 198 | <br>
|
172 | 199 | <dt>started</dt>
|
173 |
| - <dd><i class="icon-pencil icon-white"></i> 23 Settembre 2013</dd> |
| 200 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> 23 Settembre 2013</dd> |
174 | 201 | <dt>category</dt>
|
175 |
| - <dd><i class="icon-pencil icon-white"></i> IT issue</dd> |
| 202 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> IT issue</dd> |
176 | 203 | <dt>issue</dt>
|
177 |
| - <dd><i class="icon-pencil icon-white"></i> printer unavailable</dd> |
| 204 | + <dd><i class="icon-pencil icon-white jom__edit_field"></i> printer unavailable</dd> |
178 | 205 | </dl>
|
179 | 206 | </div>
|
180 | 207 | </div>
|
181 |
| - <div class="row"> |
| 208 | + |
| 209 | + <!-- ADD NOTES AND FILES --> |
| 210 | + <div class="row jom__job_notes_and_files"> |
182 | 211 | <div class="span8 offset4" style="border-top: 1px solid #AFAFAF;">
|
183 | 212 | <h4 style="padding-left: 0.9em;">Add notes and files</h4>
|
184 | 213 | <form class="form-inline" style="margin-left: 1.8em;">
|
|
195 | 224 | </form>
|
196 | 225 | </div>
|
197 | 226 | </div>
|
198 |
| - <div class="row"> |
| 227 | + |
| 228 | + <!-- HISTORY --> |
| 229 | + <div class="row jom__job_history"> |
199 | 230 | <div class="span8 offset4" style="border-top: 1px solid #AFAFAF;">
|
200 | 231 | <h4 style="padding-left: 0.9em;">History</h4>
|
201 |
| - <span class="label label-info" style="margin-left: 1.8em;">notes</span> <span class="label label-info">changes</span> |
202 |
| - <dl class="dl-horizontal"> |
203 |
| - <dt><i class="icon-remove"></i> 27/10/2013 - 09:34</dt> <dd>creata attività</dd> |
204 |
| - <dt><i class="icon-remove"></i> 28/10/2013 - 15:49</dt> <dd>creata attività</dd> |
205 |
| - </dl> |
| 232 | + <span class="label label-info" style="margin-left: 1.8em;">notes</span> |
| 233 | + <span class="label label-info" style="box-shadow: 1px 1px 3px #000000;">changes</span> |
| 234 | + <dl class="dl-horizontal"> |
| 235 | + <dt><i class="icon-remove"></i> 27/10/2013 - 09:34</dt> <dd>creata attività</dd> |
| 236 | + <dt><i class="icon-remove"></i> 28/10/2013 - 15:49</dt> <dd>creata attività</dd> |
| 237 | + </dl> |
| 238 | + </div> |
| 239 | + </div> |
| 240 | + |
| 241 | + <!-- FILES --> |
| 242 | + <div class="row jom__job_files"> |
| 243 | + <div class="span8 offset4" style="border-top: 1px solid #AFAFAF;"> |
| 244 | + <h4 style="padding-left: 0.9em;">Files and documents</h4> |
| 245 | + <dl class="dl-horizontal"> |
| 246 | + <dt><i class="icon-remove"></i> uploaded 27/10/2013 - 09:34</dt> <dd><a href="">creata attività</a></dd> |
| 247 | + </dl> |
206 | 248 | </div>
|
207 | 249 | </div>
|
208 | 250 |
|
|
0 commit comments