|
10 | 10 | "CalculateLUI", |
11 | 11 | "CalculateLUI", |
12 | 12 | new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "divResultGrid", OnBegin = "$('#divResultButtons').hide(); $('#divResultGrid').empty(); $('#dtmLuiSpinner').show(); $('html, body').animate({ scrollTop: 0 }, 'slow');", OnSuccess = "$('#divResultButtons').show(); $('#dtmLuiSpinner').hide();resetAllTelerikIconTitles();" }, |
13 | | - new { @autocomplete= "off" }) |
| 13 | + new { @autocomplete = "off" }) |
14 | 14 | ) |
15 | 15 | { |
16 | | - <td style="width: 600px; vertical-align:top;"> |
| 16 | + @Html.HiddenFor(m => m.IsPublicAccess) |
17 | 17 |
|
18 | | - @Html.ActionLink("How to reference", "DownloadPDF", new { fileName = "LUI-citation.pdf" }, new { @class = "bx-button small function", target = "_blank" }) |
19 | | - @Html.ActionLink("How to use the tool", "DownloadPDF", new { fileName = "HowToPlusDiagram.pdf" }, new { @class = "bx-button small function", target = "_blank" }) |
20 | | - @Html.ActionLink("LUI changes docu", "DownloadPDF", new { fileName = "LuiChangesInfo.pdf" }, new { @class = "bx-button small function", target = "_blank" }) |
21 | | - @if (Model.MissingComponentData.Count() != 0 && Model.IsPublicAccess == false) |
22 | | - { |
23 | | - <div class="dtm-divBox"> |
24 | | - <p class="dtm-para_green">Warning: Some input data needed for calculation is not completely available. Below you will find the affected years, and for which plots the data is missing. For this year, use the LUI just for testing purposes. For publications, use only LUI where no warning is given.</p> |
| 18 | + <td style="width: 600px; vertical-align:top;"> |
25 | 19 |
|
26 | | - <div class="dtm-controls"> |
| 20 | + @Html.ActionLink("How to reference", "DownloadPDF", new { fileName = "LUI-citation.pdf" }, new { @class = "bx-button small function", target = "_blank" }) |
| 21 | + @Html.ActionLink("How to use the tool", "DownloadPDF", new { fileName = "HowToPlusDiagram.pdf" }, new { @class = "bx-button small function", target = "_blank" }) |
| 22 | + @Html.ActionLink("LUI changes docu", "DownloadPDF", new { fileName = "LuiChangesInfo.pdf" }, new { @class = "bx-button small function", target = "_blank" }) |
| 23 | + @if (Model.MissingComponentData.Count() != 0 && Model.IsPublicAccess == false) |
| 24 | + { |
| 25 | + <div class="dtm-divBox"> |
| 26 | + <p class="dtm-para_green">Warning: Some input data needed for calculation is not completely available. Below you will find the affected years, and for which plots the data is missing. For this year, use the LUI just for testing purposes. For publications, use only LUI where no warning is given.</p> |
| 27 | + |
| 28 | + <div class="dtm-controls"> |
27 | 29 |
|
28 | 30 | @if (Model.MissingComponentData.Count() == 0) |
29 | 31 | { |
30 | 32 | <div>No warnings.</div> |
31 | 33 | } |
32 | 34 | else |
33 | 35 | { |
34 | | - <div class="box"> |
35 | | - <b>Source Dataset:</b> @Model.NewComponentsSetDatasetId<br /> |
36 | | - </div> |
37 | | - <div class="box"> |
38 | | - <b>Version:</b> @Model.NewComponentsSetDatasetVersion |
39 | | - </div> |
40 | | - <div class="box"> |
41 | | - <b>Last update:</b> @Model.NewComponentsSetLastUpdate |
42 | | - </div> |
43 | | - <br /><br /> |
44 | | - foreach (var missingCompData in Model.MissingComponentData) |
45 | | - { |
46 | | - |
47 | 36 | <div class="box"> |
48 | | - <b>Year:</b> @missingCompData.Year<br /> |
| 37 | + <b>Source Dataset:</b> @Model.NewComponentsSetDatasetId<br /> |
49 | 38 | </div> |
50 | 39 | <div class="box"> |
51 | | - <b>Missing plots:</b><br /><a class="plotClick">Click to show</a> |
| 40 | + <b>Version:</b> @Model.NewComponentsSetDatasetVersion |
52 | 41 | </div> |
53 | | - <div class="plots"> |
54 | | - @foreach (var plot in missingCompData.PlotIds) |
55 | | - { |
56 | | - @plot<br /> |
57 | | - } |
| 42 | + <div class="box"> |
| 43 | + <b>Last update:</b> @Model.NewComponentsSetLastUpdate |
58 | 44 | </div> |
59 | | - |
| 45 | + <br /><br /> |
| 46 | + foreach (var missingCompData in Model.MissingComponentData) |
| 47 | + { |
| 48 | + |
| 49 | + <div class="box"> |
| 50 | + <b>Year:</b> @missingCompData.Year<br /> |
| 51 | + </div> |
| 52 | + <div class="box"> |
| 53 | + <b>Missing plots:</b><br /><a class="plotClick">Click to show</a> |
| 54 | + </div> |
| 55 | + <div class="plots"> |
| 56 | + @foreach (var plot in missingCompData.PlotIds) |
| 57 | + { |
| 58 | + @plot<br /> |
| 59 | + } |
| 60 | + </div> |
| 61 | + |
| 62 | + } |
60 | 63 | } |
61 | | - } |
62 | | - |
| 64 | + |
| 65 | + </div> |
| 66 | + |
| 67 | + <br /> |
63 | 68 | </div> |
64 | | - |
65 | | - <br /> |
66 | | - </div> |
67 | | - } |
| 69 | + } |
68 | 70 | <div id="divQuery00" class="dtm-divBox"> |
69 | 71 | <p class="dtm-para_green">Which input data do you want to use for the calculation (default = new set).</p> |
70 | 72 | <div class="dtm-controls"> |
|
161 | 163 | </label> |
162 | 164 | </span> |
163 | 165 | } |
164 | | - </div> |
165 | | - <div id="yearsNew" v> |
| 166 | + </div> |
| 167 | + <div id="yearsNew" v> |
166 | 168 | @for (int i = 0; i < Model.AvailableYearsNewComp.Count(); i++) |
167 | 169 | { |
168 | 170 | <span style="flex-grow: 0"> |
|
173 | 175 | </label> |
174 | 176 | </span> |
175 | 177 | } |
176 | | - </div> |
| 178 | + </div> |
177 | 179 | </div> |
178 | 180 |
|
179 | 181 | <div class="dtm-message dtm-para_green" id="dtmLocationMessages"><div data-location="ALB">@Settings.get("lui:msg:alb")</div><div data-location="HAI">@Settings.get("lui:msg:hai")</div><div data-location="SCH">@Settings.get("lui:msg:sch")</div></div> |
|
218 | 220 | <td style="vertical-align:top;"> |
219 | 221 | <div id="divResultButtons" style="display:none" |
220 | 222 | data-prepurl="@Url.Action("PrepareDownloadFile", "LUICalculation")" |
221 | | - data-downloadurl="@Url.Action("DownloadFile", "LUICalculation")"> |
| 223 | + data-downloadurl="@Url.Action("DownloadFile", "LUICalculation")" |
| 224 | + data-isPublic="@Model.IsPublicAccess"> |
222 | 225 | <button type="button" class="dtm-download bx-button function" data-download="text/csv">Download (zip)</button> |
223 | 226 | @*<button type="button" class="dtm-download bx-button function" data-download="text/tsv">Download Tab Separated</button>*@ |
224 | 227 | </div> |
|
0 commit comments