end of day commit
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="365.19299"
|
||||
height="356.44772"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.1 r9760"
|
||||
sodipodi:docname="Yeni belge 1">
|
||||
<title
|
||||
id="title4033">Dining table</title>
|
||||
<defs
|
||||
id="defs4">
|
||||
<filter
|
||||
inkscape:collect="always"
|
||||
id="filter3919"
|
||||
x="-0.00602814"
|
||||
width="1.0120564"
|
||||
y="-1.2853113"
|
||||
height="3.5706227"
|
||||
color-interpolation-filters="sRGB">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="0.90633735"
|
||||
id="feGaussianBlur3921" />
|
||||
</filter>
|
||||
<filter
|
||||
inkscape:collect="always"
|
||||
id="filter3933"
|
||||
x="-0.0060926909"
|
||||
width="1.0121855"
|
||||
y="-0.39438713"
|
||||
height="1.7887743"
|
||||
color-interpolation-filters="sRGB">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="0.38549602"
|
||||
id="feGaussianBlur3935" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.35355339"
|
||||
inkscape:cx="21.876736"
|
||||
inkscape:cy="553.42146"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1209"
|
||||
inkscape:window-height="830"
|
||||
inkscape:window-x="238"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title>Dining table</dc:title>
|
||||
<dc:date>17.02.2012</dc:date>
|
||||
<dc:creator>
|
||||
<cc:Agent>
|
||||
<dc:title>Ozer Kavak</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:creator>
|
||||
<dc:publisher>
|
||||
<cc:Agent>
|
||||
<dc:title>http://www.nestingo.com</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:publisher>
|
||||
<dc:source>http://www.nestingo.com/masa-sandalye/masalar/14-mutfak-masasi-efes7070.html</dc:source>
|
||||
<dc:subject>
|
||||
<rdf:Bag>
|
||||
<rdf:li>wood</rdf:li>
|
||||
<rdf:li>dining</rdf:li>
|
||||
<rdf:li>table</rdf:li>
|
||||
</rdf:Bag>
|
||||
</dc:subject>
|
||||
<dc:description>Based on wooden dining table NestinGo - Efes7070 at: http://www.nestingo.com/masa-sandalye/masalar/14-mutfak-masasi-efes7070.html</dc:description>
|
||||
<dc:contributor>
|
||||
<cc:Agent>
|
||||
<dc:title>Ozer Kavak</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:contributor>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-8.4314067,-682.84287)">
|
||||
<path
|
||||
sodipodi:nodetypes="cssssccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3895"
|
||||
d="m 266.93607,1033.075 -0.27679,4.143 c -0.0831,1.2444 -0.73616,2.0726 -1.98332,2.0726 l -147.36316,0 c -1.24716,0 -1.91591,-0.9612 -1.98332,-2.2065 l -0.20978,-3.8752 c 2.75643,0.3347 148.50327,-0.4083 151.81641,-0.1339 z"
|
||||
style="fill:#000000;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
style="fill:#4d4d4d;fill-opacity:1;stroke:none"
|
||||
d="m 125.34632,959.52917 131.36316,0 c 1.24716,0 2.11204,1.01181 2.25118,2.25117 l 8,71.25906 c 0.13914,1.2394 -1.00402,2.2512 -2.25118,2.2512 l -147.36316,0 c -1.24716,0 -2.39032,-1.0118 -2.25118,-2.2512 l 8,-71.25906 c 0.13914,-1.23936 1.00402,-2.25117 2.25118,-2.25117 z"
|
||||
id="rect3892"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="sssssssss" />
|
||||
<path
|
||||
style="fill:#808080;fill-opacity:1;stroke:none;filter:url(#filter3933)"
|
||||
d="m 266.95416,1033.075 c -0.007,0.4056 -0.16782,1.7977 -1.37623,2.175 l -148.81525,0 c -1.22062,-0.5054 -1.71465,-1.29 -1.65646,-2.3252 2.9774,0.019 148.50327,-0.1242 151.81641,0.1502 z"
|
||||
id="path3931"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccc" />
|
||||
<rect
|
||||
style="fill:#1a1a1a;fill-opacity:1;stroke:none"
|
||||
id="rect3890"
|
||||
width="31.470152"
|
||||
height="230.70157"
|
||||
x="175.29283"
|
||||
y="771.20813"
|
||||
ry="3.855947"
|
||||
rx="2.5253813" />
|
||||
<path
|
||||
style="fill:#ad751d;fill-opacity:1;stroke:none"
|
||||
d="m 59.808785,682.84299 266.578125,2.8e-4 c 0.53593,0.0101 0.71238,0.23311 0.94457,0.52239 l 43.69642,75.19161 -359.999995,0 48.68005,-75.66108 c 0.0235,-0.0411 0.0629,-0.0548 0.10083,-0.0532 z"
|
||||
id="rect3117"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccc" />
|
||||
<path
|
||||
sodipodi:nodetypes="ccccccccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3888"
|
||||
d="m 10.966865,777.55727 359.999995,0 c 0.284,-0.21068 0.55237,-0.48385 0.52387,-1.00703 l -0.0328,-16.74297 -0.58577,-1.36049 -359.771365,-0.0234 -0.53572,1.51786 0.0216,16.60685 c -0.0139,0.38327 0.11284,0.89154 0.38019,1.00918 z"
|
||||
style="fill:#975e30;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
style="fill:#ffccaa;fill-opacity:1;stroke:none;filter:url(#filter3919)"
|
||||
d="m 10.734915,760.01479 359.939105,0.11735 0.65014,-0.18628 0.12503,-0.26486 -0.5542,-1.23422 -359.849495,-0.007 -0.36289,0.77507 c -0.18907,0.29674 0.0317,0.54177 0.0523,0.7996 z"
|
||||
id="path3917"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1021 B |
@@ -12,6 +12,7 @@
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
//= require jquery-ui
|
||||
//= require twitter/bootstrap
|
||||
//= require_directory .
|
||||
//= require_self
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
root = exports ? this
|
||||
root.Qsupplier=
|
||||
move_table_to_active_section: (table_id)->
|
||||
table_container = $('#section-table-'+table_id)
|
||||
section_container = $('.section-tables-active')
|
||||
section_container.append(table_container)
|
||||
Qsupplier.position_table_in_active_section(section_container, table_container)
|
||||
position_table_in_active_section: (section_container, table_container)->
|
||||
button_container = table_container.find('.action-button-container')
|
||||
button_container.html('')
|
||||
button_container.append($('<button class="btn btn-warning btn-mini">x</button>').click( -> Qsupplier.move_table_to_inactive_section(table_container.data('table-id')) ))
|
||||
position_x = parseFloat(table_container.data('position-x'))
|
||||
position_y = parseFloat(table_container.data('position-y'))
|
||||
table_container.css('left', section_container.width()*position_x/current_section_width)
|
||||
table_container.css('top', section_container.height()*position_y/current_section_height)
|
||||
#TODO place element at 0.0 if it happens to be outside the region
|
||||
table_container.show()
|
||||
table_container.draggable(
|
||||
containment: section_container,
|
||||
stop: ->
|
||||
position_x = current_section_width * $(this).position().left / section_container.width()
|
||||
position_y = current_section_height * $(this).position().top / section_container.height()
|
||||
table_container.data('position-x', position_x)
|
||||
table_container.data('position-y', position_y)
|
||||
$.ajax(
|
||||
type: 'PUT',
|
||||
url: '/supplier/tables/'+table_container.data('table-id'),
|
||||
data: {table: {position_x: position_x, position_y: position_y}},
|
||||
dataType: 'json'
|
||||
)
|
||||
)
|
||||
#TODO make ajax call safe
|
||||
$.ajax(
|
||||
type: 'PUT',
|
||||
url: '/supplier/tables/'+table_container.data('table-id'),
|
||||
data: {table: {section_id: current_section_id}},
|
||||
dataType: 'json'
|
||||
)
|
||||
move_table_to_inactive_section: (table_id)->
|
||||
table_container = $('#section-table-'+table_id)
|
||||
table_container.css('left', 'auto')
|
||||
table_container.css('top', 'auto')
|
||||
section_container = $('.section-tables-inactive')
|
||||
section_container.prepend(table_container)
|
||||
button_container = table_container.find('.action-button-container')
|
||||
button_container.html('')
|
||||
button_container.append($('<button class="btn btn-primary btn-mini">+</button>').click( -> Qsupplier.move_table_to_active_section(table_container.data('table-id')) ))
|
||||
#TODO make ajax call safe
|
||||
$.ajax(
|
||||
type: 'PUT',
|
||||
url: '/supplier/tables/'+table_container.data('table-id'),
|
||||
data: {table: {section_id: ''}},
|
||||
dataType: 'json'
|
||||
)
|
||||
@@ -3,6 +3,8 @@ table
|
||||
th
|
||||
&.currency
|
||||
text-align: right
|
||||
&.numeric
|
||||
text-align: right
|
||||
tbody
|
||||
td
|
||||
&.status-icons
|
||||
|
||||
@@ -11,3 +11,28 @@ body
|
||||
margin-top: 4px
|
||||
margin-bottom: 6px
|
||||
padding-bottom: 0
|
||||
.section-tables-container
|
||||
.section-table
|
||||
background-color: #ccc
|
||||
height: 44px
|
||||
background-repeat: no-repeat
|
||||
width: 45px
|
||||
background-image: image-url('icons/section-table.png')
|
||||
.table-number
|
||||
margin-top: -45px
|
||||
.action-button-container
|
||||
margin-right: -20px
|
||||
&.section-tables-active
|
||||
position: relative
|
||||
padding: 0
|
||||
height: 400px
|
||||
background-image: image-url('textures/wood4.jpg')
|
||||
.section-table
|
||||
position: absolute
|
||||
cursor: move
|
||||
&.section-tables-inactive
|
||||
.section-table
|
||||
margin-top: 10px
|
||||
margin-bottom: 30px
|
||||
float: left
|
||||
margin-right: 30px
|
||||
|
||||
Reference in New Issue
Block a user