role="dialog"
data-checkbox="modalNewprob"
)
- .card(@keyup.enter="sendProblem()")
+ .card
label#closeNewprob.modal-close(for="modalNewprob")
fieldset
label(for="selectVariant") {{ st.tr["Variant"] }}
button(@click="sendProblem()") {{ st.tr["Send"] }}
#dialog.text-center {{ st.tr[infoMsg] }}
.row(v-if="showOne")
- .col-sm-12.col-md-10.col-md-offset-2
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
#topPage
span.vname {{ curproblem.vname }}
span.uname ({{ curproblem.uname }})
@click="deleteProblem(curproblem)"
)
| {{ st.tr["Delete"] }}
- p.clickable(
+ p.oneInstructions.clickable(
v-html="parseHtml(curproblem.instruction)"
@click="curproblem.showSolution=!curproblem.showSolution"
)
},
displayProblem: function(p) {
return (
- (this.selectedVar == 0 || p.vid == this.selectedVar) &&
+ (!this.selectedVar || p.vid == this.selectedVar) &&
((this.onlyMines && p.uid == this.st.user.id) ||
(!this.onlyMines && p.uid != this.st.user.id))
);
sendProblem: function() {
const error = checkProblem(this.curproblem);
if (error) {
- alert(error);
+ alert(this.st.tr[error]);
return;
}
const edit = this.curproblem.id > 0;
& > *
margin: 0
+p.oneInstructions
+ margin: 0
+ padding: 2px 5px
+ background-color: lightgreen
+
#topPage
span.vname
font-weight: bold