Merge pull request #628 from thabaum/dashboard-table-col-size
Fix Dashboard button/input table col size
This commit is contained in:
		| @ -28,7 +28,7 @@ | ||||
|     </table> | ||||
|     <Pager Items="@_files"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Modified</th> | ||||
|             <th>Type</th> | ||||
|  | ||||
| @ -15,14 +15,14 @@ else | ||||
|  | ||||
|     <Pager Items="@_jobs"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Status</th> | ||||
|             <th>Frequency</th> | ||||
|             <th>Next Execution</th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|             <td><ActionLink Action="Edit" Parameters="@($"id=" + context.JobId.ToString())" /></td> | ||||
|  | ||||
| @ -49,7 +49,7 @@ else | ||||
|     { | ||||
|         <Pager Items="@_logs"> | ||||
|             <Header> | ||||
|                 <th> </th> | ||||
|                 <th style="width: 1px;"> </th> | ||||
|                 <th>Date</th> | ||||
|                 <th>Level</th> | ||||
|                 <th>Feature</th> | ||||
|  | ||||
| @ -16,7 +16,7 @@ | ||||
|                     <Header> | ||||
|                         <th>Name</th> | ||||
|                         <th>Version</th> | ||||
|                         <th></th> | ||||
|                         <th style="width: 1px"></th> | ||||
|                     </Header> | ||||
|                     <Row> | ||||
|                         <td>@context.Name</td> | ||||
|  | ||||
| @ -14,11 +14,11 @@ else | ||||
|  | ||||
|     <Pager Items="@_moduleDefinitions"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Version</th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|             <td><ActionLink Action="Edit" Parameters="@($"id=" + context.ModuleDefinitionId.ToString())" /></td> | ||||
|  | ||||
| @ -9,8 +9,8 @@ | ||||
|  | ||||
|     <Pager Items="@PageState.Pages.Where(item => !item.IsDeleted)"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|  | ||||
| @ -12,8 +12,8 @@ else | ||||
|  | ||||
|     <Pager Items="@_profiles"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|  | ||||
| @ -16,8 +16,8 @@ | ||||
|         { | ||||
|             <Pager Items="@_pages"> | ||||
|                 <Header> | ||||
|                     <th> </th> | ||||
|                     <th> </th> | ||||
|                     <th style="width: 1px;"> </th> | ||||
|                     <th style="width: 1px;"> </th> | ||||
|                     <th>Name</th> | ||||
|                     <th>Deleted By</th> | ||||
|                     <th>Deleted On</th> | ||||
| @ -42,8 +42,8 @@ | ||||
|         { | ||||
|             <Pager Items="@_modules"> | ||||
|                 <Header> | ||||
|                     <th> </th> | ||||
|                     <th> </th> | ||||
|                     <th style="width: 1px;"> </th> | ||||
|                     <th style="width: 1px;"> </th> | ||||
|                     <th>Page</th> | ||||
|                     <th>Module</th> | ||||
|                     <th>Deleted By</th> | ||||
|  | ||||
| @ -12,9 +12,9 @@ else | ||||
|  | ||||
|     <Pager Items="@_roles"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|  | ||||
| @ -14,8 +14,8 @@ else | ||||
|  | ||||
|     <Pager Items="@_sites"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|  | ||||
| @ -11,8 +11,8 @@ else | ||||
| { | ||||
|     <Pager Items="@tenants"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|  | ||||
| @ -16,7 +16,7 @@ | ||||
|                     <Header> | ||||
|                         <th>Name</th> | ||||
|                         <th>Version</th> | ||||
|                         <th></th> | ||||
|                         <th style="width: 1px;"></th> | ||||
|                     </Header> | ||||
|                     <Row> | ||||
|                         <td>@context.Name</td> | ||||
|  | ||||
| @ -15,10 +15,10 @@ else | ||||
|  | ||||
|     <Pager Items="@_themes"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Version</th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th scope="col">Name</th> | ||||
|             <th scope="col">Version</th> | ||||
|             <th> </th> | ||||
|         </Header> | ||||
|         <Row> | ||||
| @ -37,6 +37,7 @@ else | ||||
|                     <button type="button" class="btn btn-success" @onclick=@(async () => await DownloadTheme(context.ThemeName, context.Version))>Upgrade</button> | ||||
|                     } | ||||
|             </td> | ||||
|             <td></td> | ||||
|         </Row> | ||||
|     </Pager> | ||||
| } | ||||
|  | ||||
| @ -32,7 +32,7 @@ else | ||||
|                         <label for="Name" class="control-label">Password: </label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@password" /> | ||||
|                         <input type="password" class="form-control" @bind="@password" autocomplete="new-password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
| @ -40,7 +40,7 @@ else | ||||
|                         <label for="Name" class="control-label">Confirm Password: </label> | ||||
|                     </td> | ||||
|                     <td> | ||||
|                         <input type="password" class="form-control" @bind="@confirm" /> | ||||
|                         <input type="password" class="form-control" @bind="@confirm" autocomplete="new-password" /> | ||||
|                     </td> | ||||
|                 </tr> | ||||
|                 <tr> | ||||
| @ -111,8 +111,8 @@ else | ||||
|             { | ||||
|                 <Pager Items="@notifications"> | ||||
|                     <Header> | ||||
|                         <th> </th> | ||||
|                         <th> </th> | ||||
|                         <th style="width: 1px;"> </th> | ||||
|                         <th style="width: 1px;"> </th> | ||||
|                         <th>From</th> | ||||
|                         <th>Subject</th> | ||||
|                         <th>Received</th> | ||||
|  | ||||
| @ -33,7 +33,7 @@ | ||||
|                 <td> | ||||
|                     <input class="form-control" @bind="@subject" readonly /> | ||||
|                 </td> | ||||
| } | ||||
|             } | ||||
|             @if (title == "To") | ||||
|             { | ||||
|                 <td> | ||||
| @ -51,7 +51,7 @@ | ||||
|                     <input class="form-control" @bind="@createdon" readonly /> | ||||
|                 </td> | ||||
|             </tr> | ||||
| } | ||||
|         } | ||||
|         @if (title == "From") | ||||
|         { | ||||
|             <tr> | ||||
| @ -62,7 +62,7 @@ | ||||
|                     <textarea class="form-control" @bind="@body" rows="5" readonly /> | ||||
|                 </td> | ||||
|             </tr> | ||||
| } | ||||
|         } | ||||
|         @if (title == "To") | ||||
|         { | ||||
|             <tr> | ||||
| @ -73,7 +73,7 @@ | ||||
|                     <textarea class="form-control" @bind="@body" rows="5" /> | ||||
|                 </td> | ||||
|             </tr> | ||||
| } | ||||
|         } | ||||
|     </table> | ||||
|  | ||||
|  | ||||
|  | ||||
| @ -20,9 +20,9 @@ else | ||||
|  | ||||
|     <Pager Items="@userroles"> | ||||
|         <Header> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|  | ||||
| @ -10,10 +10,10 @@ | ||||
|     <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <th>Role</th> | ||||
|                 <th scope="col">Role</th> | ||||
|                 @foreach (PermissionString permission in _permissions) | ||||
|                 { | ||||
|                     <th style="text-align: center;">@permission.PermissionName</th> | ||||
|                     <th style="text-align: center; width: 1px;">@permission.PermissionName</th> | ||||
|                 } | ||||
|             </tr> | ||||
|             @foreach (Role role in _roles) | ||||
| @ -36,10 +36,10 @@ | ||||
|         <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|             <thead> | ||||
|                 <tr> | ||||
|                     <th>User</th> | ||||
|                     <th scope="col">User</th> | ||||
|                     @foreach (PermissionString permission in _permissions) | ||||
|                     { | ||||
|                         <th style="text-align: center;">@permission.PermissionName</th> | ||||
|                 <th style="text-align: center; width: 1px;">@permission.PermissionName</th> | ||||
|                     } | ||||
|                 </tr> | ||||
|             </thead> | ||||
| @ -48,11 +48,11 @@ | ||||
|                 { | ||||
|                     string userid = "[" + user.UserId.ToString() + "]"; | ||||
|                     <tr> | ||||
|                         <td>@user.DisplayName</td> | ||||
|                         <td >@user.DisplayName</td> | ||||
|                         @foreach (PermissionString permission in _permissions) | ||||
|                         { | ||||
|                             var p = permission; | ||||
|                             <td style="text-align: center;"> | ||||
|                             <td style="text-align: center; width: 1px;"> | ||||
|                                 <TriStateCheckBox Value=@GetPermissionValue(p.Permissions, userid) Disabled=false OnChange="@(e => PermissionChanged(e, p.PermissionName, userid))" /> | ||||
|                             </td> | ||||
|                         } | ||||
| @ -64,9 +64,10 @@ | ||||
|     <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <td style="text-align: right;"><label for="Username" class="control-label">User: </label></td> | ||||
|                 <td><input type="text" name="Username" class="form-control" placeholder="Enter Username" @bind="@_username" /></td> | ||||
|                 <td style="text-align: left;"><button type="button" class="btn btn-primary" @onclick="AddUser">Add</button></td> | ||||
|                 <td class="input-group"> | ||||
|                     <input type="text" name="Username" class="form-control" placeholder="Enter Username" @bind="@_username" /> | ||||
|                     <button type="button" class="btn btn-primary" @onclick="AddUser">Add</button> | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </tbody> | ||||
|     </table> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker