Compare commits
26
Commits
ad643464cb
..
1.1-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70401139f9 | ||
|
|
4429a2a4f6 | ||
|
|
725d2b0cdd | ||
|
|
3793f4a865 | ||
|
|
e3f25e76f2 | ||
|
|
d6f0421b9f | ||
|
|
e5f6341d4e | ||
|
|
c29d0af836 | ||
|
|
383bf4d220 | ||
|
|
1e8576af1c | ||
|
|
c0f0fd732f | ||
|
|
b871e98cbb | ||
|
|
db55a5769e | ||
|
|
0e949dff50 | ||
|
|
4541fab34e | ||
|
|
50e4903a30 | ||
|
|
d65de687d8 | ||
|
|
afecca7172 | ||
|
|
623770091b | ||
|
|
7098d19225 | ||
|
|
08b8646374 | ||
|
|
590701fe22 | ||
|
|
da5339a473 | ||
|
|
caf1efce0c | ||
|
|
a222906fe2 | ||
|
|
c568635f60 |
@@ -1 +0,0 @@
|
||||
{"URL":"http://octopart.com/api/v3/parts/search?apikey=", "key":""}
|
||||
+54
-32
@@ -6,7 +6,7 @@ from functools import wraps
|
||||
from sqlalchemy.sql import select
|
||||
from sqlalchemy.sql import text
|
||||
from flask import Flask
|
||||
from flask import render_template, send_from_directory, request, Response, send_file
|
||||
from flask import render_template, send_from_directory, request, Response, send_file, session
|
||||
from PIL import Image, ImageDraw
|
||||
from io import BytesIO
|
||||
from os import listdir
|
||||
@@ -30,24 +30,33 @@ def getContainers():
|
||||
return containers
|
||||
|
||||
def check_auth(username, password):
|
||||
admin_list = []
|
||||
with open('edit_admin.json', 'r') as admin:
|
||||
admin_list = json.load(admin)
|
||||
for user in admin_list:
|
||||
if username == user['username']:
|
||||
return password == user['password']
|
||||
query = "select id, password from users where username=:usrnm;"
|
||||
r = db_engine.execute(text(query), usrnm=username)
|
||||
results = []
|
||||
for row in r:
|
||||
results.append(dict(row))
|
||||
r.close()
|
||||
if len(results)!=1:
|
||||
return False;
|
||||
|
||||
if results[0]['password']==password:
|
||||
session['uid'] = results[0]['id']
|
||||
print (session['uid'])
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def authenticate():
|
||||
return Response('Could not verify access level. Please retry', 401, {'WWW-Authenticate' : 'Basic realm="Login Required"'})
|
||||
return Response('Could not verify access level. Please retry', 401, {'WWW-Authenticate' : 'Basic realm="Login Required"'})
|
||||
|
||||
def requires_auth(f):
|
||||
@wraps(f)
|
||||
def decorated(*args, **kwargs):
|
||||
auth = request.authorization
|
||||
if not auth or not check_auth(auth.username, auth.password):
|
||||
return authenticate()
|
||||
return f(*args, **kwargs)
|
||||
return decorated
|
||||
@wraps(f)
|
||||
def decorated(*args, **kwargs):
|
||||
auth = request.authorization
|
||||
if not auth or not check_auth(auth.username, auth.password):
|
||||
return authenticate()
|
||||
return f(*args, **kwargs)
|
||||
return decorated
|
||||
|
||||
def serveImage(img):
|
||||
img_io = BytesIO()
|
||||
@@ -90,14 +99,14 @@ def locationEditor():
|
||||
return render_template('locationEditor.html', locations=locations, containers=getContainers())
|
||||
|
||||
@app.route('/parts/alterLocation/<locationID>', methods=['POST'])
|
||||
# @requires_auth
|
||||
@requires_auth
|
||||
def alterLocation(locationID):
|
||||
locationID = int(locationID)
|
||||
s = ''
|
||||
if locationID < 0:
|
||||
# New entry
|
||||
s = 'insert into locations (name, container_id) '
|
||||
s += 'values (:name, :container);'
|
||||
s += 'values (:name, :container, :userid);'
|
||||
s = text(s)
|
||||
r = db_engine.execute(s,name=request.form['name'],container=request.form['container']);
|
||||
r.close()
|
||||
@@ -114,7 +123,7 @@ def alterLocation(locationID):
|
||||
|
||||
@app.route('/parts/getpartinfo/<partID>')
|
||||
def get_part_info(partID):
|
||||
s = 'select p.id,partno,description, c.name || l.name as location_descriptor, location_id, container_id, datasheet from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where p.id = :id;'
|
||||
s = 'select p.id,partno,description,notes, c.name || l.name as location_descriptor, location_id, container_id, datasheet from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where p.id = :id;'
|
||||
r = db_engine.execute(text(s), id=partID)
|
||||
l = []
|
||||
for row in r:
|
||||
@@ -152,11 +161,7 @@ def query(filter_dummy, query):
|
||||
s += 'LOWER(description) like LOWER(:kw'+ str(i) +') AND '
|
||||
s = s[:-5]
|
||||
s += ') OR '
|
||||
if filter['n'] == 'true':
|
||||
s = s[:-4]
|
||||
s += "AND (datasheet='' IS NOT FALSE) IS FALSE OR "
|
||||
s = s[:-4] + ';'
|
||||
print(s)
|
||||
s = text(s)
|
||||
r = db_engine.execute(s, kw_dict)
|
||||
l = []
|
||||
@@ -198,30 +203,38 @@ def getfile(filename):
|
||||
return send_from_directory('/srv/datasheets/', filename + '.pdf')
|
||||
|
||||
@app.route('/parts/alter/<partID>', methods=['POST'])
|
||||
# @requires_auth
|
||||
@requires_auth
|
||||
def alter(partID):
|
||||
partID = int(partID)
|
||||
s = ''
|
||||
r = {}
|
||||
if partID < 0:
|
||||
# New entry
|
||||
s = 'insert into parts (partno, description, datasheet, location_id) '
|
||||
s += 'values (:partno, :description, :datasheet, :location_id) returning id;'
|
||||
s = 'insert into parts (partno, description, datasheet, location_id, whoadded, notes) '
|
||||
s += 'values (:partno, :description, :datasheet, :location_id, :user_id, :notes) returning id;'
|
||||
s = text(s)
|
||||
if len(request.files) != 0:
|
||||
datasheet_file = request.files['datasheet-file']
|
||||
datasheet_filename = secure_filename(datasheet_file.filename)
|
||||
i = 1
|
||||
while os.path.isfile('srv/datasheet/' + datasheet_filename):
|
||||
while os.path.isfile('srv/datasheets/' + datasheet_filename):
|
||||
datasheet_filename = datasheet_filename[:-4] + str(i) + '.pdf'
|
||||
i += 1
|
||||
datasheet_file.save('/srv/datasheets/' + datasheet_filename)
|
||||
datasheet_filename = 'http://elab.kth.se/parts/getfile/' + datasheet_filename
|
||||
# elif request.form.has_key('datasheet-url'):
|
||||
# datasheet_filename = request.form['datasheet-url']
|
||||
else:
|
||||
datasheet_filename = None
|
||||
try:
|
||||
datasheet_filename = request.form['datasheet-url']
|
||||
except:
|
||||
datasheet_filename = None
|
||||
r = db_engine.execute(s, partno=request.form['partno'],
|
||||
description=request.form['description'],
|
||||
datasheet=datasheet_filename,
|
||||
location_id=request.form['location_id'])
|
||||
location_id=request.form['location_id'],
|
||||
notes=request.form['notes'],
|
||||
user_id=session['uid'])
|
||||
else:
|
||||
# Modify entry
|
||||
r = db_engine.execute(text('select * from parts where id=:id;'), id=partID)
|
||||
@@ -230,26 +243,33 @@ def alter(partID):
|
||||
l.append(dict(row))
|
||||
r.close()
|
||||
s = 'update parts '
|
||||
s += 'set partno=:partno, description=:description, datasheet=:datasheet, location_id=:location_id '
|
||||
s += 'set partno=:partno, description=:description, datasheet=:datasheet, location_id=:location_id, notes=:notes '
|
||||
if len(request.files) != 0:
|
||||
datasheet_file = request.files['datasheet-file']
|
||||
datasheet_filename = secure_filename(datasheet_file.filename)
|
||||
i = 1
|
||||
while os.path.isfile('srv/datasheet/' + datasheet_filename):
|
||||
while os.path.isfile('srv/datasheets/' + datasheet_filename):
|
||||
datasheet_filename = datasheet_filename[:-4] + str(i) + '.pdf'
|
||||
i += 1
|
||||
datasheet_file.save('/srv/datasheets/' + datasheet_filename)
|
||||
datasheet_filename = 'http://elab.kth.se/parts/getfile/' + datasheet_filename
|
||||
if l[0]['datasheet'] != None:
|
||||
os.remove('/srv/datasheets/' + l[0]['datasheet'])
|
||||
# elif request.form.has_key('datasheet-url'):
|
||||
# datasheet_filename = request.form['datasheet-url']
|
||||
else:
|
||||
datasheet_filename = l[0]['datasheet']
|
||||
try:
|
||||
datasheet_filename = request.form['datasheet-url']
|
||||
except:
|
||||
datasheet_filename = l[0]['datasheet']
|
||||
s += 'where id=:id returning id;'
|
||||
s = text(s)
|
||||
r = db_engine.execute(s, partno=request.form['partno'],
|
||||
description=request.form['description'],
|
||||
datasheet=datasheet_filename,
|
||||
location_id=request.form['location_id'],
|
||||
id=partID)
|
||||
id=partID,
|
||||
notes=request.form['notes'])
|
||||
|
||||
new_id = r.fetchone()[0]
|
||||
r.close()
|
||||
@@ -308,6 +328,8 @@ def connect(user, password, db, host='localhost', port=5432):
|
||||
return con, meta
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.secret_key = 'asuiygdiahsdo[ainsfl]asfkjnb;asklnj'
|
||||
app.config['SESSION_TYPE'] = 'memcached'
|
||||
with open('admin.json') as f:
|
||||
postgres_credentials = json.load(f)
|
||||
db_engine, db_metadata = connect(postgres_credentials['username'], postgres_credentials['password'], 'parts_v2')
|
||||
|
||||
+32
-12
@@ -4,18 +4,21 @@ function init_edit(partID) {
|
||||
$('#container-dropdown').show();
|
||||
|
||||
$('table#details tr#partno td p').hide();
|
||||
$('table#details tr#partno td input').show();
|
||||
$('input[name=partno-input]').show();
|
||||
$('#magical_autofill').show();
|
||||
|
||||
$('table#details tr#description td p').hide();
|
||||
$('table#details tr#description td input').show();
|
||||
$('input[name=description-input]').show();
|
||||
|
||||
$('table#details tr#datasheet td input').closest().show();
|
||||
$('table#details tr#datasheet td input').show();
|
||||
|
||||
$('#duplicate-button').closest('div').hide();
|
||||
|
||||
var datasheet_input = $('<input type="file" class="part-edit-file" id="datasheet-input" accept=".pdf">')
|
||||
$('#datasheet-info').replaceWith(datasheet_input);
|
||||
$('tr#datasheet').show();
|
||||
|
||||
$('input[name=notes-input]').show();
|
||||
$('table#details tr#notes td p').hide();
|
||||
|
||||
var newButton = '<div class="round-button-left"><a href="#" onclick="save(' + partID + ')"><i class="fa fa-check" aria-hidden="true"></i></a></div>';
|
||||
$('.round-button-left').replaceWith(newButton);
|
||||
@@ -27,6 +30,7 @@ function new_entry() {
|
||||
$('table#details tr#description td p').text('');
|
||||
$('table#details tr#partno td input').val('');
|
||||
$('table#details tr#description td input').val('');
|
||||
$('input[name=datasheet-url-input]').val('');
|
||||
container_onchange();
|
||||
init_edit(-1);
|
||||
overlay_in();
|
||||
@@ -49,7 +53,10 @@ function end_edit() {
|
||||
$('table#details tr#description td p').show();
|
||||
$('table#details tr#description td input').hide();
|
||||
|
||||
$('table#details tr#datasheet td input').hide();
|
||||
$('tr#datasheet').hide();
|
||||
|
||||
$('input[name=notes-input]').hide();
|
||||
$('table#details tr#notes td p').show();
|
||||
|
||||
$('#duplicate-button').closest('div').show();
|
||||
|
||||
@@ -58,10 +65,16 @@ function end_edit() {
|
||||
}
|
||||
|
||||
function save(partID) {
|
||||
if (!$('#location-dropdown').val()) {
|
||||
alert('Please select a location.');
|
||||
return;
|
||||
}
|
||||
var location_id_v = $('#location-dropdown').val();
|
||||
var partno_v = $('input[name=partno-input]').val();
|
||||
var description_v = $('input[name=description-input]').val();
|
||||
var datasheet = $('table#details tr#datasheet td input')[0].files;
|
||||
var datasheet_url_v = $('input[name=datasheet-url-input]').val();
|
||||
var notes_v = $('input[name=notes-input]').val();
|
||||
if(partno_v.length == 0){
|
||||
alert('Please enter a part number.');
|
||||
return;
|
||||
@@ -86,10 +99,13 @@ function save(partID) {
|
||||
return;
|
||||
}
|
||||
data.append('datasheet-file', datasheet[0]);
|
||||
} else if (datasheet_url_v.length > 0) {
|
||||
data.append('datasheet-url', datasheet_url_v);
|
||||
}
|
||||
data.append('partno', partno_v);
|
||||
data.append('location_id', location_id_v)
|
||||
data.append('location_id', location_id_v);
|
||||
data.append('description', description_v);
|
||||
data.append('notes', notes_v);
|
||||
|
||||
$.ajax({
|
||||
// Your server script to process the upload
|
||||
@@ -157,10 +173,12 @@ function show_part_info(partID) {
|
||||
$('table#details tr#partno td input').val(text_filter(data.partno));
|
||||
$('table#details tr#description td p').text(text_filter(data.description));
|
||||
$('table#details tr#description td input').val(text_filter(data.description));
|
||||
$('table#details tr#notes td p').text(text_filter(data.notes));
|
||||
$('input[name=notes-input]').val(text_filter(data.notes));
|
||||
container_onchange();
|
||||
if (data.datasheet != null) {
|
||||
$('tr#datasheet-head').html($('<td>DATASHEET: <a href="parts/getfile/' + data.datasheet + '"><i class="fa fa-file-text" aria-hidden="true"></i></a></td>'));
|
||||
$('#datasheet-input').val(data.datasheet);
|
||||
$('tr#datasheet-head').html($('<td>DATASHEET: <a href="' + data.datasheet + '" target="_blank"><i class="fa fa-file-text" aria-hidden="true"></i></a></td>'));
|
||||
$('input[name=datasheet-url-input]').val(data.datasheet);
|
||||
}
|
||||
else
|
||||
$('tr#datasheet-head td').text('DATASHEET: ');
|
||||
@@ -179,12 +197,12 @@ function show_part_info(partID) {
|
||||
function perform_query() {
|
||||
$('#no-results').stop();
|
||||
$('#no-results').css("opacity", 0);
|
||||
$('#no-results').hide();
|
||||
var query = $('.search-bar').val();
|
||||
var data = {
|
||||
l:$('#location').is(':checked'),
|
||||
p:$('#partno').is(':checked'),
|
||||
d:$('#description').is(':checked'),
|
||||
n:$('#has-docs').is(':checked')
|
||||
d:$('#description').is(':checked')
|
||||
};
|
||||
filter = '0';
|
||||
$("#results").find("tr:not(:first)").remove(); // Delete all table rows
|
||||
@@ -198,9 +216,11 @@ function perform_query() {
|
||||
$('#results').append(newRow);
|
||||
}
|
||||
if(data.length == 0) {
|
||||
$('#no-results').animate({opacity:1},2000);
|
||||
$('#no-results').show();
|
||||
$('#no-results').animate({opacity:1},2000);
|
||||
}
|
||||
}).fail(function() {
|
||||
$('#no-results').show();
|
||||
$('#no-results').animate({opacity:1},2000);
|
||||
console.log( "Query failed" );
|
||||
});
|
||||
@@ -213,7 +233,7 @@ function container_onchange() {
|
||||
$('#location-dropdown').empty();
|
||||
$.getJSON('parts/getlocationsInContainer/' + selected_container_id, function(data) {
|
||||
$.each(data, function(location_id, location_name) {
|
||||
$('#location-dropdown').append('<option val="' + location_id + '">' + location_name + '</option>');
|
||||
$('#location-dropdown').append('<option value="' + location_id + '">' + location_name + '</option>');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
+12
-79
@@ -68,7 +68,7 @@ input[type=text].search-bar {
|
||||
color: #D7E2E2;
|
||||
font-size: 10pt;
|
||||
margin-top: 4pt;
|
||||
margin-left: 16pt;
|
||||
margin-left: 3pt;
|
||||
margin-bottom: 4pt;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ div label input {
|
||||
height: 100%;
|
||||
left: 0;
|
||||
opacity: 0.0;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 200;
|
||||
@@ -172,30 +172,10 @@ div label input {
|
||||
min-width: 60%;
|
||||
width:900px;
|
||||
z-index: 201;
|
||||
border-radius: 2pt;
|
||||
text-align: center;
|
||||
opacity: 0.0;
|
||||
}
|
||||
|
||||
.details-item {
|
||||
display: inline-block;
|
||||
width: 25%;
|
||||
padding: 12pt 10pt 12pt 0;
|
||||
text-align: right;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.details-content {
|
||||
display: inline-block;
|
||||
width: 65%;
|
||||
padding-left: 20pt;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.details-content p {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.round-button {
|
||||
position: absolute;
|
||||
bottom: 15pt;
|
||||
@@ -287,6 +267,9 @@ div label input {
|
||||
|
||||
table#results {
|
||||
width: 100%;
|
||||
max-width: 1280px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
@@ -308,7 +291,7 @@ table#results td {
|
||||
}
|
||||
|
||||
table#results #location {
|
||||
width: 15%;
|
||||
width: 18%;
|
||||
}
|
||||
|
||||
table#results #partno {
|
||||
@@ -327,64 +310,16 @@ table#details {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 35%;
|
||||
margin-top: 4%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
table#details #location-head {
|
||||
height: 10%;
|
||||
.details-header {
|
||||
color: #013A3A;
|
||||
}
|
||||
|
||||
table#details #location {
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
table#details #location td{
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
table#details #partno-head {
|
||||
height: 10%;
|
||||
color: #013A3A;
|
||||
}
|
||||
|
||||
table#details #partno-head td{
|
||||
padding-top: 16pt;
|
||||
}
|
||||
|
||||
table#details #partno{
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
table#details #partno td{
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
table#details #description-head {
|
||||
height: 10%;
|
||||
color: #013A3A;
|
||||
}
|
||||
|
||||
table#details #description-head td {
|
||||
padding-top: 16pt;
|
||||
}
|
||||
|
||||
table#details #description {
|
||||
height: 20%;
|
||||
}
|
||||
|
||||
table#details #description td {
|
||||
padding-left: 5%;
|
||||
padding-right: 5%;
|
||||
}
|
||||
|
||||
table#details #datasheet-head {
|
||||
height: 10%;
|
||||
color: #013A3A;
|
||||
}
|
||||
|
||||
table#details #datasheet-head td {
|
||||
padding-top: 16pt;
|
||||
.details-content td{
|
||||
padding-top:6pt;
|
||||
padding-bottom:16pt;
|
||||
}
|
||||
|
||||
td p {
|
||||
@@ -410,7 +345,5 @@ td p {
|
||||
}
|
||||
|
||||
.results-locations{
|
||||
max-width: 1000px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
}
|
||||
@@ -23,11 +23,10 @@
|
||||
</div>
|
||||
<div class="filter-concontainertainer">
|
||||
<div class="filter-container">
|
||||
<p>Search in:</p>
|
||||
<p>SEARCH IN</p>
|
||||
<input type="checkbox" class="checkbox" id="location"></input><label class="toggle-btn" for="location">Locations<br/><i class="fa fa-map" style="font-size:28pt"></i></label>
|
||||
<input type="checkbox" class="checkbox" id="partno" checked></input><label class="toggle-btn" for="partno">Part Number<br/><i class="fa fa-hashtag" style="font-size:28pt"></i></label>
|
||||
<input type="checkbox" class="checkbox" id="description" checked></input><label class="toggle-btn" for="description">Description<br/><i class="fa fa-edit" style="font-size:28pt"></i></label>
|
||||
<input type="checkbox" class="checkbox" id="has-docs"></input><label class="toggle-btn" for="has-docs">Has docs<br/><i class="fa fa-paperclip" style="font-size:28pt"></i></label>
|
||||
</div>
|
||||
</div>
|
||||
<table id="results">
|
||||
@@ -45,8 +44,8 @@
|
||||
<h2>Part Details</h2>
|
||||
<div>
|
||||
<table id="details">
|
||||
<tr id="location-head"><td>LOCATION</td></tr>
|
||||
<tr id="location"><td><p></p>
|
||||
<tr id="location-head" class="details-header"><td>LOCATION</td></tr>
|
||||
<tr id="location" class="details-content"><td><p></p>
|
||||
<select class="pinfo-input" id="container-dropdown" onchange="container_onchange()">
|
||||
{% for container in containers %}
|
||||
<option value="{{container['id']}}">{{container['name']}}</option>
|
||||
@@ -56,13 +55,16 @@
|
||||
<option value="-1" selected="true">-- Select a container --</option>
|
||||
</select>
|
||||
</td></tr>
|
||||
<tr id="partno-head"><td>PART NUMBER</td></tr>
|
||||
<tr id="partno"><td><p></p><input type="text" name="partno-input" placeholder="Part Number" class="pinfo-input" id="partno-input"/></td></tr>
|
||||
<tr id="description-head"><td>DESCRIPTION</td></tr>
|
||||
<tr id="description"><td><p></p><input type="text" name="description-input" placeholder="Description" class="pinfo-input" id="description-input"/></td></tr>
|
||||
<tr id="magical_autofill" style="display:none"><td><input type="button" id="magic-autofill-button" onclick="octopartFetch()" value="magical auto-fill" /></td></tr>
|
||||
<tr id="datasheet-head"><td>DATASHEET: </td></tr>
|
||||
<tr id="datasheet"><td><input type="file" accept=".pdf" class="pinfo-input"></td></tr>
|
||||
<tr id="partno-head" class="details-header"><td>PART NUMBER</td></tr>
|
||||
<tr id="partno" class="details-content"><td><p></p><input type="text" name="partno-input" placeholder="Part Number" class="pinfo-input" id="partno-input"/></td></tr>
|
||||
<tr id="description-head" class="details-header"><td>DESCRIPTION</td></tr>
|
||||
<tr id="description" class="details-content"><td><p></p><input type="text" name="description-input" placeholder="Description" class="pinfo-input" id="description-input"/></td></tr>
|
||||
<tr id="magical_autofill" style="display:none"><td><input type="button" id="magic-autofill-button" onclick="octopartFetch()" value="magical auto-fill" style="margin-bottom:6pt"/></td></tr>
|
||||
<tr id="datasheet-head" class="details-header"><td>DATASHEET: </td></tr>
|
||||
<tr id="datasheet" style="display: none"><td><input type="file" accept=".pdf" class="pinfo-input" id="datasheet-finput"></td></tr>
|
||||
<tr id="datasheet" style="display: none"><td>OR: <input type="text" class="pinfo-input" name="datasheet-url-input" style="width:80%; margin-bottom: 6pt;" placeholder="Datasheet URL"></td></tr>
|
||||
<tr id="notes-head" class="details-header"><td>NOTES</td></tr>
|
||||
<tr id="notes" class="details-content"><td><p></p><input type="text" name="notes-input" class="pinfo-input" placeholder="Notes"></td></tr>
|
||||
</table>
|
||||
<img src="" id="map" class="map"/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user