Skip to content

Commit

Permalink
Updated mainImagemodule in Rich (publiclab#8290)
Browse files Browse the repository at this point in the history
Co-authored-by: NitinBhasneria <nitinbhasnerai360@gmail.com>
  • Loading branch information
2 people authored and manchere committed Feb 13, 2021
1 parent cb97191 commit f805d87
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions app/views/editor/rich.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,40 +78,40 @@


<!-- main_image module -->
<div class="ple-module-main_image ple-module row">
<div class="ple-module-main_image ple-module container">
<div class="ple-module-guide col-md-3"><h2>2</h2></div>

<div class="ple-module-guide col-lg-3">
<h2>2</h2>
</div>

<div class="ple-module-content row col-lg-9">
<div class="ple-drag-drop col-lg-6">Drag an image here to upload.</div>
<div class="col-lg-6 help">
<div class="ple-module-content col-md-9 container">
<div class="mainImageBox">
<div id="mainImage" class="ple-drag-drop">
Drag an image here to upload.
</div>
</div>
<div class="col-md-6 help">
<div style="display:none;" class="progress">
<div
class="progress-bar progress-bar-striped progress-bar-animated"
class="progress-bar progress-bar-striped active"
role="progressbar"
aria-valuenow="0"
aria-valuemin="0"
aria-valuemax="100"
style="width: 0%;">
</div>
style="width: 0%;"
></div>
</div>
<p>
<input
aria-label="Upload image"
type="file"
accept=".png, .jpg, .jpeg"
name="image[photo]"
value="<% if @node && @node.main_image(:rails) %><%= @node.main_image(:rails).id %><% else %><%= params[:main_image] %><% end %>"
/>
</p>

<input type="file" name="image[photo]" id="thumbnail-img">
<label for="thumbnail-img" class="thumbnailBtn">
<span>Choose a file…</span>
</label>
<div id="thumbnail-filename"></div>
<button id="removeFile" class="thumbnailBtn">Remove File</button>
<p class="ple-help">
<span class="ple-help-minor">Select an optional main image for your post.</span>
<span class="ple-help-minor"
>Select an optional main image for your post.</span
>
</p>
</div>
</div>

</div>
<!-- end main_image module -->

Expand Down

0 comments on commit f805d87

Please sign in to comment.