Skip to content

Created new Picture Choice field #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"extends": "fliplet",
"extends": ["eslint:recommended", "fliplet"],
"globals": {
"Vue": "readonly",
"Sortable": "readonly"
},
"parser": "espree",
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"es6": true
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.history
.idea
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/fliplet-widget-form-builder.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

160 changes: 160 additions & 0 deletions css/builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,166 @@ input[type="time"]:not(.basic-time-picker)::-webkit-calendar-picker-indicator {
padding-left: 57px;
}

/* Picture choice */
.picture-choice {
display: flex;
align-items: center;
flex-direction: column;
}

.picture-choice label {
display: flex;
align-items: center;
column-gap: 5px;
}

.picture-choice .form-group {
width: 100%;
}

.option-image {
width: 50px;
height: 50px;
}

.option-image img {
width: 100%;
height: 100%;
}

body {
cursor: auto;
position: absolute;
top: 0;
bottom: 0;
width: 100%;
background-color: transparent;
}

.form-horizontal {
height: 100%;
padding: 15px;
overflow: auto;
}

.btn-link.text-danger {
color: #d9534f;
}

.btn-link:active.text-danger,
.btn-link:active:focus.text-danger,
.btn-link:active:hover.text-danger,
.btn-link:focus.text-danger,
.btn-link:hover.text-danger {
color: #c9302c;
}

.radio.radio-icon+.radio.radio-icon {
margin-top: 0;
}

.radio.radio-icon input[type="radio"] + label {
margin-left: 15px;
}

.panel-group {
user-select: none;
-webkit-user-select: none;
}

.panel {
opacity: 1;
transition: opacity 100ms linear;
-webkit-transition: opacity 100ms linear;
}

.panel.focus {
opacity: 0.7;
}

.panel-group .panel {
overflow: hidden;
}

.panel-group[draggable="true"] {
background-color: rgba(0, 171, 209, 0.3);
}

.panel-group[draggable="true"] {
background-color: #ffffff;
}

.panel-group[draggable="true"] .add {
display: none;
}

.panel-group.sortable-ghost[draggable="true"] {
background-color: rgba(0, 171, 209, 0.3);
}

.panel-heading {
position: relative;
padding: 0;
}

.panel-heading:hover {
cursor: -webkit-grab;
cursor: -moz-grab;
}

.panel-heading h4 {
padding: 10px 40px 10px 6px;
}

.panel-heading .fa-chevron-down,
.panel-heading .fa-chevron-right {
margin-right: 10px;
}

.panel-title .fa {
cursor: pointer;
}

.panel-heading .icon-delete {
position: absolute;
top: 0;
right: 0;
opacity: 0;
color: #E60000;
width: 38px;
height: 38px;
line-height: 38px;
text-align: center;
}

.panel-heading:hover .icon-delete {
opacity: 1;
}

.panel-collapse {
opacity: 0;
}

.list-holder {
padding-left: 0;
}

.list-holder .radio .radio-icon {
display: flex;
align-items: center;
}

.panel-collapse.in {
opacity: 1;
transition: opacity 0.1s linear;
-webkit-transition: opacity 0.1s linear;
}

.panels-empty {
text-align: center;
margin-bottom: 40px;
}

/* SIGNATURE FIELD */

.field-signature {
Expand Down
Loading