-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
150 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if not exists(select 1 from DataDictionary where DicName=N'WidgetStatus') | ||
begin | ||
insert into DataDictionary(DicName,Title,DicValue,[Order],Pid,IsSystem,[Status]) | ||
select N'WidgetStatus',N'Visible',1,1,0,1,1 union all | ||
select N'WidgetStatus',N'Hidden',2,2,0,1,1 union all | ||
select N'WidgetStatus',N'Deleted',3,3,0,1,1 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
delete from `DataDictionary` where `DicName`='WidgetStatus'; | ||
insert into `DataDictionary`(`DicName`,`Title`,`DicValue`,`Order`,`Pid`,`IsSystem`,`Status`) | ||
select 'WidgetStatus','Visible',1,1,0,1,1 union all | ||
select 'WidgetStatus','Hidden',2,2,0,1,1 union all | ||
select 'WidgetStatus','Deleted',3,3,0,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
delete from DataDictionary where DicName='WidgetStatus'; | ||
insert into DataDictionary(DicName,Title,DicValue,[Order],Pid,IsSystem,[Status]) | ||
select 'WidgetStatus','Visible',1,1,0,1,1 union all | ||
select 'WidgetStatus','Hidden',2,2,0,1,1 union all | ||
select 'WidgetStatus','Deleted',3,3,0,1,1 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ | |
<ul data-zoneid="@item.HeadingCode" class="fullRowList widgets connectedSortable"> | ||
@foreach (var widget in Model.Widgets.Where(m => m.IsInZone(item.HeadingCode)).OrderBy(m => m.Position).ThenBy(m => m.WidgetName)) | ||
{ | ||
<li id="[email protected]" class="widget" data-widgetid="@widget.ID" data-position="@(widget.LayoutId.IsNotNullAndWhiteSpace()||widget.RuleID.HasValue?widget.Position:0)"> | ||
<li title="@(widget.Status == (int)WidgetStatus.Deleted ? L("Deleted"):widget.WidgetName)" id="[email protected]" class="widget @(widget.Status == (int)WidgetStatus.Deleted? "disabled":"")" data-widgetid="@widget.ID" data-position="@(widget.LayoutId.IsNotNullAndWhiteSpace() || widget.RuleID.HasValue ? widget.Position : 0)"> | ||
@if (widget.LayoutId.IsNotNullAndWhiteSpace()) | ||
{ | ||
<a class="badge" href="@Url.Action("LayoutWidget","Layout",new{ layoutId = widget.LayoutId })">@L("Layout")</a> | ||
|
@@ -80,7 +80,7 @@ | |
<img class="icon" src="~/images/icons/delete.svg" /> | ||
</a> | ||
} | ||
@if (widget.Status == (int)RecordStatus.InActive) | ||
@if (widget.Status == (int)WidgetStatus.Hidden) | ||
{ | ||
<a style="cursor:default"><img class="icon" src="~/images/icons/invisible.svg" title="@L("Invisible")" /></a> | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.