|
41 | 41 | </div> |
42 | 42 | <div class="col-sm-6"> |
43 | 43 | <div class="btn-group"> |
44 | | - <button type="button" class="ms-5 btn btn-sm btn-primary" @onclick="Report"> |
| 44 | + <button type="button" class="btn btn-sm btn-primary" @onclick="Report"> |
45 | 45 | @(DisplayService.DisplayButton(userConfig, "generate_report", Icons.GenerateReport)) |
46 | 46 | </button> |
47 | 47 | <button type="button" class="btn btn-sm btn-dark" @onclick="ShowHistory"> |
|
51 | 51 | { |
52 | 52 | <AuthorizeView Roles="@($"{Roles.Modeller}, {Roles.Requester}, {Roles.Implementer}, {Roles.Admin}, {Roles.Auditor}")"> |
53 | 53 | <Authorized> |
54 | | - <button type="button" class="ms-5 btn btn-sm btn-primary" @onclick="RequestFwChange"> |
| 54 | + <button type="button" class="btn btn-sm btn-primary" @onclick="RequestFwChange"> |
55 | 55 | @(DisplayService.DisplayButtonWithTooltip(userConfig, "request_fw_change", Icons.RequestFwChange, UserConfig.PureLineStat(ChangeStatus))) |
56 | 56 | </button> |
57 | 57 | </Authorized> |
58 | 58 | <NotAuthorized> |
59 | 59 | <div data-toggle="tooltip" title="@(userConfig.PureLine("C9012"))"> |
60 | | - <button type="button" class="ms-5 btn btn-sm btn-primary" disabled> |
| 60 | + <button type="button" class="btn btn-sm btn-primary" disabled> |
61 | 61 | @(DisplayService.DisplayButton(userConfig, "request_fw_change", Icons.RequestFwChange)) |
62 | 62 | </button> |
63 | 63 | </div> |
|
68 | 68 | { |
69 | 69 | <AuthorizeView Roles="@($"{Roles.Modeller}, {Roles.Admin}, {Roles.Auditor}")"> |
70 | 70 | <Authorized> |
71 | | - <button type="button" class="ms-5 btn btn-sm btn-primary" @onclick="Recertify"> |
| 71 | + <button type="button" class="btn btn-sm btn-success" @onclick="Recertify"> |
72 | 72 | @(DisplayService.DisplayButtonWithTooltip(userConfig, "recertify", Icons.Recertify, UserConfig.PureLineStat(RecertStatus))) |
73 | 73 | </button> |
74 | 74 | </Authorized> |
75 | 75 | <NotAuthorized> |
76 | 76 | <div data-toggle="tooltip" title="@(userConfig.PureLine("C9012"))"> |
77 | | - <button type="button" class="ms-5 btn btn-sm btn-primary" disabled> |
| 77 | + <button type="button" class="btn btn-sm btn-success" disabled> |
78 | 78 | @(DisplayService.DisplayButton(userConfig, "recertify", Icons.Recertify)) |
79 | 79 | </button> |
80 | 80 | </div> |
|
97 | 97 | </button> |
98 | 98 | <AuthorizeView Roles="@($"{Roles.Admin}, {Roles.Auditor}")"> |
99 | 99 | <Authorized> |
100 | | - |
101 | | - <button type="button" class="btn btn-sm btn-dark" @onclick="ManualAppServer"> |
| 100 | + <button type="button" class="btn btn-sm btn-warning" @onclick="ManualAppServer"> |
102 | 101 | @(DisplayService.DisplayButton(userConfig, "edit_app_server", Icons.Edit, "", Icons.Host)) |
103 | 102 | </button> |
104 | 103 | </Authorized> |
105 | 104 | </AuthorizeView> |
106 | | - |
107 | 105 | @if(userConfig.VarianceAnalysisRefresh) |
108 | 106 | { |
109 | 107 | <button type="button" class="btn btn-sm btn-primary" @onclick="RefreshState"> |
|
117 | 115 | <div class="mx-2 mt-2"> |
118 | 116 | <TabSet WholeWidth="false" DarkMode="false" KeepPanelsAlive="false" @ref="appHandler!.Tabset"> |
119 | 117 | <Tab Title="@(userConfig.GetText("connections"))" Position=0> |
120 | | - <button type="button" class="btn btn-sm btn-success mb-2" @onclick="appHandler!.AddConnection"> |
| 118 | + <button type="button" class="btn btn-sm btn-success" @onclick="appHandler!.AddConnection"> |
121 | 119 | @(DisplayService.DisplayButton(userConfig, "add_connection", Icons.Add)) |
122 | 120 | </button> |
123 | 121 | <ConnectionTable UseResponsiveTable="true" ShowPageSizeInput="true" Connections="@appHandler!.GetRegularConnections()" @bind-AppHandler="appHandler" AppActive="appActive" ShowModellingState="true" ShowProductionState="true" /> |
124 | 122 | </Tab> |
125 | 123 | <Tab Title="@(userConfig.GetText("provided_interfaces"))" Position=1> |
126 | 124 | <div class="d-flex justify-content-between"> |
127 | 125 | <div> |
128 | | - <button type="button" class="btn btn-sm btn-success mb-2" @onclick="appHandler!.AddInterface"> |
| 126 | + <button type="button" class="btn btn-sm btn-success" @onclick="appHandler!.AddInterface"> |
129 | 127 | @(DisplayService.DisplayButton(userConfig, "add_interface", Icons.Add)) |
130 | 128 | </button> |
131 | 129 | </div> |
|
143 | 141 | @if (selectedApp.CommSvcPossible) |
144 | 142 | { |
145 | 143 | <Tab Title="@(userConfig.GetText("common_services"))" Position=2> |
146 | | - <button type="button" class="btn btn-sm btn-success mb-2" |
| 144 | + <button type="button" class="btn btn-sm btn-success" |
147 | 145 | @onclick="appHandler!.AddCommonService">@(DisplayService.DisplayButton(userConfig, "add_common_service", Icons.Add)) |
148 | 146 | </button> |
149 | | - <ConnectionTable UseResponsiveTable="true" Connections="@appHandler!.GetCommonServices()" @bind-AppHandler="appHandler" AppActive="appActive" ShowModellingState="true" ShowProductionState="true" /> |
| 147 | + <ConnectionTable UseResponsiveTable="true" ShowPageSizeInput="true" Connections="@appHandler!.GetCommonServices()" @bind-AppHandler="appHandler" AppActive="appActive" ShowModellingState="true" ShowProductionState="true" /> |
150 | 148 | </Tab> |
151 | 149 | } |
152 | 150 | </TabSet> |
|
448 | 446 | { |
449 | 447 | if(lastResponse != null && IsTempError(lastResponse)) |
450 | 448 | { |
451 | | - string tooltip = userConfig.GetText("temp_error_extended") + ": " + lastResponse; |
452 | | - //ChangeStatus = $"<div data-toggle=\"tooltip\" title=\"{tooltip}\">{userConfig.GetText("temp_error")}</div>"; |
453 | | - ChangeStatus = $"{userConfig.GetText("temp_error")}: {tooltip}</div>"; |
| 449 | + string errorText = userConfig.GetText("temp_error_extended") + ": " + lastResponse; |
| 450 | + ChangeStatus = $"{userConfig.GetText("temp_error")}: {errorText}"; |
454 | 451 | } |
455 | 452 | else |
456 | 453 | { |
|
461 | 458 | { |
462 | 459 | if(lastResponse != null) |
463 | 460 | { |
464 | | - string tooltip = states.Name[intTicket.StateId] + ": " + lastResponse; |
465 | | - //ChangeStatus = $"<div data-toggle=\"tooltip\" title=\"{tooltip}\">{userConfig.GetText("implementation_error")}</div>"; |
466 | | - ChangeStatus = $"{userConfig.GetText("implementation_error")}: {tooltip}</div>"; |
| 461 | + string errorText = states.Name[intTicket.StateId] + ": " + lastResponse; |
| 462 | + ChangeStatus = $"{userConfig.GetText("implementation_error")}: {errorText}"; |
467 | 463 | } |
468 | 464 | else |
469 | 465 | { |
|
0 commit comments