Skip to content

Commit

Permalink
Grand.Web.Admin - Add missing media settings - allow to edit by store…
Browse files Browse the repository at this point in the history
… owner (#76)
  • Loading branch information
KrzysztofPajak committed Jul 22, 2021
1 parent c6b9e0d commit 296e0c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,15 @@
<span asp-validation-for="DefaultImageName"></span>
</div>
</div>
<div class="form-group">
<div class="col-8 col-md-4 col-sm-4 text-right">
<admin-label asp-for="StoreLocation" class="control-label" />
</div>
<div class="col-4 col-md-8 col-sm-8">
<admin-input asp-for="StoreLocation" />
<span asp-validation-for="StoreLocation"></span>
</div>
</div>
</div>
</div>
<vc:admin-widget widget-zone="media_settings_bottom" additional-data="null" />
Expand Down
3 changes: 3 additions & 0 deletions src/Web/Grand.Web.Admin/Models/Settings/MediaSettingsModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public partial class MediaSettingsModel : BaseModel
[GrandResourceDisplayName("Admin.Settings.Media.AllowedFileTypes")]
public string AllowedFileTypes { get; set; }

[GrandResourceDisplayName("Admin.Settings.Media.StoreLocation")]
public string StoreLocation { get; set; }

[GrandResourceDisplayName("Admin.Settings.Media.DefaultImageName")]
public string DefaultImageName { get; set; } = "no-image.png";

Expand Down
6 changes: 6 additions & 0 deletions src/Web/Grand.Web/App_Data/Resources/DefaultLanguage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11484,6 +11484,12 @@
<Resource Name="Admin.Settings.Media.ProductThumbPictureSizeOnProductDetailsPage">
<Value>Product thumbnail image size (product page)</Value>
</Resource>
<Resource Name="Admin.Settings.Media.StoreLocation">
<Value>Image location (url)</Value>
</Resource>
<Resource Name="Admin.Settings.Media.StoreLocation.hint">
<Value>This settings is only for advanced user</Value>
</Resource>
<Resource Name="Admin.Settings.Media.VendorThumbPictureSize">
<Value>Vendor thumbnail image size</Value>
</Resource>
Expand Down

0 comments on commit 296e0c6

Please sign in to comment.